On Tue, 6 May 2025 19:13:18 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
>> modules/javafx.graphics/src/test/java/test/javafx/css/CssParser_mediaQuery_Test.java >> line 316: >> >>> 314: void invalidCombinationOfConjunctionAndNegationEvaluatesToFalse() { >>> 315: Stylesheet stylesheet = new CssParser().parse(""" >>> 316: @media (prefers-reduced-motion: reduce) and not >>> (prefers-color-scheme: dark) { >> >> for my education, how can one express this logic? >> i.e. `prefers A and not B` ? > > That would be `(prefers-A) and (not (prefers-B))`. A bit convoluted, but > that's what the grammar says... please add this example to `cssref.html` ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/1655#discussion_r2076102352