On Thu, 28 Nov 2024 14:02:36 GMT, Michael Strauß <mstra...@openjdk.org> wrote:
> The CSS Selectors specification defines the `:root` pseudo-class that matches > root nodes: > https://www.w3.org/TR/selectors-4/#the-root-pseudo > > JavaFX uses the non-standard `.root` style class for the same purpose. We > should also support the `:root` pseudo-class for increased compatibility of > JavaFX CSS with the web specification. > > Additionally, we should also support the following child-indexed > pseudo-classes: > `:first-child` > `:last-child` > `:only-child` > `:nth-child()` with arguments `even` and `odd` > > The `An+B [of S]?` microsyntax for `:nth-child()` is not supported, as this > would require major changes in JavaFX CSS. This pull request has now been integrated. Changeset: 0f6b8c50 Author: Michael Strauß <mstra...@openjdk.org> URL: https://git.openjdk.org/jfx/commit/0f6b8c50f5ded5a1b9da9e2e1f3ff990e6122b5b Stats: 549 lines in 8 files changed: 510 ins; 15 del; 24 mod 8345188: Support tree-structural pseudo-classes Reviewed-by: kcr, angorya ------------- PR: https://git.openjdk.org/jfx/pull/1652