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

Add CSS support for attribute selector

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None

      Description

       http://www.w3.org/TR/css3-selectors/#attribute-selectors

      Need to support e.g., [direction='rtl']

      Possible implementation would be to add code to implementations of com.sun.java.css.Property that would invoke some method in css when the property invalidated or set. This needs to be done in a way that there is no listener added to the javafx.beans.property.Property. If there is no attribute selector for the property, then the css method shouldn't be triggered. Something like:


          @Override
          protected void invalidated() {
              super.invalidated();
              if (isAttributeSelector && triggerValue.equals(String.valueOf(get())) {
                  // get the node for this javafx.beans.property.Property
                  // set the node's cssFlag to UPDATE
              }
          }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dgrieve David Grieve
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported: