JDK-8090340 : Add CSS support for attribute selector
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: 8
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2012-09-26
  • Updated: 2018-09-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Relates :  
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 
        } 
    } 

Comments
Taking off Lombard list.
22-01-2013