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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
    • Environment:

      JDK 8u40 b06

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: