RFR: 8358450: Viewport characteristics media features [v10]

Michael Strauß mstrauss at openjdk.org
Tue Dec 16 20:13:50 UTC 2025


On Tue, 16 Dec 2025 16:36:01 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> "Standalone" matches when "fullscreen" doesn't match. The relevant part of the [specification](https://www.w3.org/TR/mediaqueries-5/#display-modes) says that it is a window with "[...] standard system UI elements, such as window decorations, a system status bar, and/or a system back button [...]".
>> 
>> "Fullscreen" matches when none of that is available and the scene extends across the entire display, which is the case when the scene is hosted in a full-screen window.
>> 
>> Note that media queries don't change CSS precedence rules. In your example, you could check whether another rule that sets `-fx-background-color` has a higher precedence. You could try adding `!important` to quickly figure out whether the rule has any effect at all.
>
> What I meant is to explain the meaning in the cssref.html.  We can't really refer to w3.org pages for JavaFX, in my opinion.  So, if you want to keep the standalone term in the values, I think you ought to explain what it is, using JavaFX or platform terminology.

I've added a description to cssref.html that says what the two values mean in JavaFX terms.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1844#discussion_r2624595941


More information about the openjfx-dev mailing list