On Tue, 27 May 2025 17:38:05 GMT, Andy Goryachev <ango...@openjdk.org> wrote:

>> 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).

In the CSS universe, `foo` identifies a standardized name (i.e. it's been 
around long enough that everyone has agreed on it, not just a single vendor), 
`-fx-foo` identifies a vendor-specific name (in this case FX, other 
vendor-specific prefixes are `-ms-`, `-webkit-`, etc.), and `--foo` identifies 
a user name. That's why most JavaFX CSS property names have the `-fx-` vendor 
prefix (but not all: `visibility` and `transition` come without a vendor 
prefix).

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

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

Reply via email to