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

Failure to resolve named color variables from imported CSS file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 9
    • 8u20
    • javafx
    • Windows x64

      Named CSS color variables defined with wildcard scope in one CSS file are not visible when imported by another CSS file. Example:

      Theme.css:

      * {
          theme-backgroundDark: #335588;
      }

      Main.css:

      @import url( "/styles/Theme.css" );

      #messageListPane {
          -fx-background-color: theme-backgroundDark;
      }

      Result:

      WARNING: Could not resolve 'theme-backgroundDark' while resolving lookups for '-fx-background-color' from rule '*#messageListPane ' in stylesheet file:/C:/xxxx/styles/Main.css

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: