On Wed, 8 Jan 2025 23:47:10 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. > > Michael Strauß has updated the pull request incrementally with one additional > commit since the last revision: > > updated cssref > Is there any thinkable use case where someone would need to front-insert a > large number of nodes one by one into a container, instead of using a bulk > operation? Because if there isn't, and it's just a simple change to do the > right thing, then we could also consider adding a javadoc note to that effect. Not that I can think of. And this seems a reasonable approach. I also would hate to throw this out because of an uncommon usage case that has a reasonable alternative. ------------- PR Comment: https://git.openjdk.org/jfx/pull/1652#issuecomment-2581085826