Re: CSS: style leaks from unrelated stylesheet

2014-10-09 Thread David Grieve
In 8u20 and before, adding a stylesheet via Control.getUserAgentStylesheet will simply add the user-agent stylesheet to the entire scene, not just the control. This has been fixed in 8u40 where the getUserAgentStylesheet method is now public API on Region and the styles added will affect only

Re: CSS: style leaks from unrelated stylesheet

2014-10-09 Thread Werner Lehmann
Thanks, David. This means I would always override getUserAgentStylesheet (for 8u20 on Control, for 8u40+ on Region). And selectors in the stylesheet should be sufficiently specific because only 8u40+ actually limits them to the declaring node. For the record, I'm not talking about

Re: CSS: style leaks from unrelated stylesheet

2014-10-09 Thread Tom Eugelink
My controls in JFXtras have been overriding getUserAgentStylesheet from day 1 (or better JavaFX 2.0), AFAIK that is the way to do it. But I'm curious if this change is the cause of the CSS issues I'm seeing in 8U40. On 9-10-2014 15:27, David Grieve wrote: In 8u20 and before, adding a