RFR: 8345348: CSS media feature queries [v25]

Andy Goryachev angorya at openjdk.org
Tue May 27 17:41:00 UTC 2025


On Tue, 27 May 2025 17:18:47 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> modules/javafx.graphics/src/main/java/javafx/scene/Scene.java line 6571:
>> 
>>> 6569:          *     <caption>Media Feature</caption>
>>> 6570:          *     <tbody>
>>> 6571:          *         <tr><th>Name</th><td><code>-fx-prefers-persistent-scrollbars</code></td></tr>
>> 
>> why the change to -fx for persistent scroll bars and not the others?
>
> The other queries are standardized and universally agreed upon, whereas this one isn't. It's there because we have a corresponding platform preference, so I think a vendor prefix is in order.

not sure what you mean by "standardized and universally agreed upon", but -fx strikes me as confusing (is it a style?)  maybe `fx-prefers-persistent-scrollbars`?

not a big deal though, as long as it's properly documented (it is).

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1655#discussion_r2109793604


More information about the openjfx-dev mailing list