RFR: 8368166: Media query should accept multiple rules [v2]
Michael Strauß
mstrauss at openjdk.org
Mon Sep 22 23:52:21 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.
Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
emit error when closing curly brace is missing
-------------
Changes:
- all: https://git.openjdk.org/jfx/pull/1915/files
- new: https://git.openjdk.org/jfx/pull/1915/files/e55a76dd..7b1a9d85
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jfx&pr=1915&range=01
- incr: https://webrevs.openjdk.org/?repo=jfx&pr=1915&range=00-01
Stats: 31 lines in 2 files changed: 31 ins; 0 del; 0 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