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

[CSS, Control] Improve handling of Control.getUserAgentStylesheet()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8u40
    • 8u5, 8u20
    • javafx

      I've seen a lot of reports recently (most recently in the ControlsFX project here: https://bitbucket.org/controlsfx/controlsfx/issue/370/using-controlsfx-causes-css-errors-and ) about JavaFX custom controls showing runtime warnings and visual glitches. This seems related to the use of Control.getUserAgenetStylesheet(), which is not something we use in JavaFX itself, but which is used by third party controls to bring in custom stylesheets. After discussing with David it seems best to improve the CSS engine to improve the handling of this code, and to isolate the stylesheets brought in by a Control such that they only impact themselves and their children. This prevents a bad stylesheet breaking other aspects of the UI. This seems both reasonable and sensible.

            dgrieve David Grieve
            jgiles Jonathan Giles
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: