Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345188

Support tree-structural pseudo-classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx24
    • jfx23
    • javafx
    • None

      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 to increase the 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"

            mstrauss Michael Strauß
            mstrauss Michael Strauß
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: