RFR: 8345348: CSS media feature queries [v23]
Andy Goryachev
angorya at openjdk.org
Tue May 6 19:19:25 UTC 2025
On Tue, 6 May 2025 19:13:18 GMT, Michael Strauß <mstrauss at 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
More information about the openjfx-dev
mailing list