RFR: 8345348: CSS media feature queries [v21]

Michael Strauß mstrauss at openjdk.org
Tue May 6 20:36:23 UTC 2025


On Tue, 6 May 2025 20:27:34 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

>> This would be a significant change, as currently `Scene` is explicitly allowed to be created _and modified_ on a background thread. This was probably always a very bad idea (because it makes the implementation so much more difficult), but how do you think we should change that?
>
> how about: 
> 
> - the implementation must not fire any events before the Scene is shown
> - the preferences getters should disallow calls from a background thread

1. That's how it is implemented. No change events before the scene is shown (only initial values are read).
2. Now this would be a direct contradiction of the specification, which would make the user model much harder. Suddenly the "you can create and modify a scene on a background thread" becomes "you can do that, but for this particular API, you can't". Since we're doing all of this mainly for application developers, the user model must be the first consideration.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1655#discussion_r2076239473


More information about the openjfx-dev mailing list