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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • fx2.0
    • 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;
      }

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

              Created:
              Updated:
              Resolved:
              Imported: