RFR: 8368166: Media query should accept multiple rules
Michael Strauß
mstrauss at openjdk.org
Sat Sep 20 00:26:48 UTC 2025
Given a media query with more than one rule:
@media (prefers-color-scheme: dark) {
.foo1 {
-fx-background-color: black;
}
.foo2 {
-fx-background-color: white;
}
}
The following CSS parser error is encountered: `Expected RBRACE`
The reason for this bug is that the CSS parser mistakenly expects that after the first rule was parsed, the media query should be terminated with a closing curly brace. This is obviously incorrect, the fix is relatively simple.
-------------
Commit messages:
- fix
- failing test
Changes: https://git.openjdk.org/jfx/pull/1915/files
Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1915&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8368166
Stats: 83 lines in 2 files changed: 55 ins; 26 del; 2 mod
Patch: https://git.openjdk.org/jfx/pull/1915.diff
Fetch: git fetch https://git.openjdk.org/jfx.git pull/1915/head:pull/1915
PR: https://git.openjdk.org/jfx/pull/1915
More information about the openjfx-dev
mailing list