-
Bug
-
Resolution: Fixed
-
P3
-
8u5, 8u20
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.
- relates to
-
JDK-8091109 getUserAgentStylesheet() gives poor support for OOP because it does not work with inheritance
- Open
-
JDK-8092530 Behavior and access of Control#getUserAgentStylesheet method changed in 8u40
- Resolved
-
JDK-8092984 Compile error with 8u40 since Region#getUserAgentStylesheet() was made public
- Closed
-
JDK-8133831 findMatchingStyles/User agent precedence
- Open