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

CSS Reference Guide false: .tab > .tab-label

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8u60
    • 8u40
    • javafx
    • JDK 8u40, Win 7 Pro SP1, 64 Bit

      The CSS Reference Guide (http://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html#tabpane) says that the following hierarchy is valid:

      {code}
      tab — Tab
         tab-label — Label
         tab-close-button — StackPane
      {code}

      Actually this is wrong. A short test using 8u40 provides the following result:

      .tab > .tab-label ==> Does not affect the header label.
      .tab > * > .tab-label ==> Affects the header label.

      Hence the guide is wrong as apparently some intermediate class is missing in the outline of .tab content. this is very confusing and unexpected.

            jgiles Jonathan Giles
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: