On Mon, 12 Oct 2026 20:12:04 GMT, John Hendrikx <[email protected]> wrote:

>> modules/javafx.graphics/src/main/java/javafx/scene/CssStyleHelper.java line 
>> 995:
>> 
>>> 993:             }
>>> 994: 
>>> 995:             it.remove();
>> 
>> is it possible for a property to be (temporarily) non-settable?
>> once it's removed the later css pass won't be able to restore its value.
>> should the entry be removed only after the successful reset?
>
> Well, you can `bind` a property... good luck setting it then.
> 
> Never quite understood why it was decided that in the CSS system, `set` and 
> `bind` aren't the ultimate truth, but can be overridden by the users own 
> stylesheet (but not the user agent stylesheet).
> 
> I mean `USER` in browser terminology means the browser user (browsers allow 
> for stylesheets set directly by the end user, that fit between the browsers 
> own default look (`USER_AGENT`) and the website developers look (`AUTHOR`).
> 
> However, in JavaFX, `USER` has been conflated with application developer... 
> it should have been the end user.

It should re-add the property at a later run. Usually, it is checked if the 
property is already included or not.
A property is usually non-settable when it is bound (we will get an exception 
if we try). 

So in this case, the style is not interesting for us, as it is anyway bound and 
therefore basically 'forced' to not being overwritable for now.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2343#discussion_r4252097695

Reply via email to