RFR: 8364149: Conditional stylesheet imports [v5]
Michael Strauß
mstrauss at openjdk.org
Thu Feb 26 18:39:46 UTC 2026
On Thu, 26 Feb 2026 18:19:53 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Looks good! Works even with inline conditionals:
>
> ```
> scene.getStylesheets().add("data:text/css," +
> """
> @import url("data:text/css, .root { -fx-base: #ff0000; }") (height < 200) and (not (width <= 200));
> """);
> ```
_Your scientists were so preoccupied with whether or not they could that they didn't stop to think if they should..._
-------------
PR Comment: https://git.openjdk.org/jfx/pull/2031#issuecomment-3968475485
More information about the openjfx-dev
mailing list