Re: [csswg-drafts] [css-pseudo] highlight pseudos and non-applicable properties (#7591)

Note the resolution did not address the very first question, which is whether to apply the [css-cascade #applies-to](https://www.w3.org/TR/css-cascade/#applies-to) rules. In chromium, _assuming it's feasible_, we will say "yes", you can set a font-size property which will affect font-size-dependent lengths. If there's no font size we use the originating element font. Also, container queries can influence lengths, and there we will also attempt to use the originating element to resolve the container query.

A question came up about shadow trees. Looking at the implementation, it seems chromium uses the shadow root as the originating element for the purpose of forced-color-mode etc. We continue to do that and revisit the implementation if it seems to cause problems.

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


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

Received on Tuesday, 25 July 2023 20:44:35 UTC