RFR: 8345348: CSS media feature queries [v23]

Michael Strauß mstrauss at openjdk.org
Tue May 6 19:19:25 UTC 2025


On Tue, 6 May 2025 15:14:05 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   improve synchronization in PreferenceProperties
>
> 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...

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1655#discussion_r2076097819


More information about the openjfx-dev mailing list