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

!important present in Author CSS doesn't supercede style property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • fx2.0
    • None
    • javafx
    • 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;
      }

            dgrieve David Grieve
            jfdenise Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: