RFR: 8364149: Conditional stylesheet imports [v4]

Michael Strauß mstrauss at openjdk.org
Thu Feb 26 16:54:26 UTC 2026


On Thu, 26 Feb 2026 16:27:57 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> For this stylesheet, I don't see the styles changing _at all_. Should `and not` logic be supported?
> 
> ```
> @import url("Css_Conditional_8364149_Narrow.css") (height < 200) and not (width <= 200);
> ```

The `and` operator must be followed by a parenthesized term: `(height < 200) and (not (width <= 200))`.
For your stylesheet, you should expect to see a parser error in the console log.

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

PR Comment: https://git.openjdk.org/jfx/pull/2031#issuecomment-3967857811


More information about the openjfx-dev mailing list