[External] : Re: CSS Lookups and their origins (possible regression)

Pedro Duque Vieira pedro.duquevieira at gmail.com
Tue Jul 9 18:28:20 UTC 2024


Hi guys,

I agree with John Hendrikx on this.

The thing is not that you override the "css variable" value but that you
end up overriding the priority of the rules in Modena which the developer
won't likely want to.

One other thing I'd add is that developers also like to use css themselves.
If modena rules suddenly start to have the priority of AUTHOR this becomes
much harder. They have to make their rules always more specific than
Modena's that now have increased priority besides the fact that they need
to be aware that this is actually happening and is the problem (in my
experience many developers won't know this).

On a related note, I created a theme called JMetro. When implementing it I
made it so that it was composed of author stylesheets (there wasn't a way
to set it as a user agent stylesheet back when I started). That's also how
90% of themes work.
However this is an issue as developers wanting to override styles set by
JMetro will have a hard time figuring out how to make their rules
specificity in their CSS higher than JMetro's so they get overridden (I've
had complaints on this). That's why now in the new theme I'm creating I'm
setting everything to be an user agent stylesheet.

Thanks,

-- 
Pedro Duque Vieira (Duke) - https://www.pixelduke.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240709/242c4880/attachment.htm>


More information about the openjfx-dev mailing list