Failure to resolve named color variables from imported CSS file

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • 9
    • Affects Version/s: 8u20
    • Component/s: javafx
    • Environment:

      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

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

              Created:
              Updated:
              Resolved:
              Imported: