RFR: 8320796: CssMetaData.combine() [v4]

Kevin Rushforth kcr at openjdk.org
Tue Nov 28 22:30:18 UTC 2023


On Tue, 28 Nov 2023 21:53:19 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> > But I've already explained the rationale: a subclass **cannot** hide its inherited JavaFX properties.
> 
> It can, but only from the CSS subsystem. Whether it makes sense or not is a different topic, but it can - by not reporting it via getClassCssMetaData();
> 
> (verified by removing FONT styleable from TextArea (TextInputControl:1649) - the user cannot change the font via CSS)

Just because you can do something, doesn't mean you should. I agree with @mstr2 that we should specify the intended and current behavior, but I also agree with @andy-goryachev-oracle that it is out of scope for this enhancement. Please file a follow-up bug to update the spec.

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

PR Comment: https://git.openjdk.org/jfx/pull/1296#issuecomment-1830859350


More information about the openjfx-dev mailing list