RFR: 8336097: UserAgent Styles using lookups are promoted to Author level if look-up is defined in Author stylesheet
John Hendrikx
jhendrikx at openjdk.org
Mon Jul 15 12:32:59 UTC 2024
On Mon, 15 Jul 2024 12:11:03 GMT, John Hendrikx <jhendrikx at openjdk.org> wrote:
> Also, do you think cssref.html should be updated to clarify the behavior in "Scene, Parent and SubScene Stylesheets" section?
@andy-goryachev-oracle
That section is about cascading rules, and doesn't even mention lookups. In fact, the whole CSS reference does not mention lookups (aside from mentioning that JavaFX has a "property lookup" feature, and an indirect mention in the form of "looked-up-color").
There is no mention how property look ups work (and what types it supports), how they should be named (any name is allowed as long as it is not a supported color name), or how they cascade (before this fix, they gave styles a new priority, after this fix, the priority of the style is unchanged).
As this is quite some work, I think documenting this feature calls for a separate task to avoid delaying this fix.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1503#issuecomment-2228390544
More information about the openjfx-dev
mailing list