Integrated: 8368166: Media query should accept multiple rules
Michael Strauß
mstrauss at openjdk.org
Fri Oct 3 10:30:07 UTC 2025
On Sat, 20 Sep 2025 00:21:16 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: a176dad2
Author: Michael Strauß <mstrauss at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/a176dad2a2da9f0fac25c6b0ff2028b49f59a526
Stats: 106 lines in 2 files changed: 79 ins; 19 del; 8 mod
8368166: Media query should accept multiple rules
Reviewed-by: angorya, arapte
-------------
PR: https://git.openjdk.org/jfx/pull/1915
More information about the openjfx-dev
mailing list