Re: [csswg-drafts] [CSS Pseudo] Revisit CSS Custom Properties in highlight pseudos (#9909)

> A model with less load could be to inherit:
> 
> * custom properties from the originating element
> * properties from the highlight tree
> 
> The root highlights would still inherit custom properties from `:root` in this model.

Yeah, that's what I was considering implementing. The nasty part is that one would need to merge the custom properties from the originating element and the highlight parent, with the originating winning any conflicts. It's doable for sure but could do a lot of damage to style resolution performance in the presence of highlight pseudos, and I'm loath to move forward unless there is measurable benefit in the wild.




-- 
GitHub Notification of comment by schenney-chromium
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9909#issuecomment-1948877680 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 16 February 2024 16:55:48 UTC