- 
    Type:
Bug
 - 
    Resolution: Duplicate
 - 
    Priority:
  P4                     
     - 
    Affects Version/s: None
 - 
    Component/s: javafx
 - 
    Environment:
Mac, sdk 179
 
                    Summary says it all. The style is not superseded
Code extract:
Rectangle rect = new Rectangle(100,100);
rect.setStyle("-fx-fill:red");
rect.getStyleClass().add("myRectangle");
n.getChildren().add(rect);
scene.getStylesheets().add(NewWorkflow.class.getResource("project.css").toExternalForm());
project.css content:
.myRectangle {
-fx-fill:blue !important;
}
Code extract:
Rectangle rect = new Rectangle(100,100);
rect.setStyle("-fx-fill:red");
rect.getStyleClass().add("myRectangle");
n.getChildren().add(rect);
scene.getStylesheets().add(NewWorkflow.class.getResource("project.css").toExternalForm());
project.css content:
.myRectangle {
-fx-fill:blue !important;
}
- duplicates
 - 
                    
JDK-8112304 CSS inheritance problem
-         
     - Closed
 
 -