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

[CSS] Using setUserAgentStylesheet() with @import syntax issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u40
    • 8u40
    • javafx
    • JDK 8u40 b06

      Open and launch the test case attached (NB project).

      Click on the "setUserAgentStylesheet on Scene to Modena YellowOnBlack" button: the label on top becomes yellow, while it should stay red, because it was set to red at the USER (aka API) level.
      Same thing for the SubScene.

      Using Scene Builder, one can see (thanks to the CSS Analyzer) that the imported css are applied to the AUTHOR (aka stylesheet) level instead of the USER_AGENT level.

            dgrieve David Grieve
            jcambon Jerome Cambon
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: