RFR: 8345188: Support tree-structural pseudo-classes [v6]

Michael Strauß mstrauss at openjdk.org
Wed Jan 8 23:00:18 UTC 2025


On Wed, 8 Jan 2025 22:30:53 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

>> Even if it is deprecated for removal, it won't be an instantaneous event.  We still need to document that, and even go further and add a warning that it will be removed, to make sure all the developers have updated their stylesheets.
>> 
>> It probably makes more sense just to keep it, for backward compatibility.
>> 
>> I don't think we want some banking application to go haywire when the selector gets removed.  There is a value in backward compatibility.
>
> I am not in favor of deprecating this for removal. I can see a possible argument for simple deprecation (although since it isn't a Java level API, it isn't clear what that would mean or what the benefit would be), but that could be done later if there was a desire to pursue it.
> 
> I do think we should continue to documenting it.

I've updated the language in cssref L2110:

However, the root node of the scene matches the
structural pseudo-class :root, as well as the legacy style
class "root" (in addition to style classes already assigned to the node).

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1652#discussion_r1907954194


More information about the openjfx-dev mailing list