Re: [csswg-drafts] [css-pseudo] Custom properties on :root (#6641)

An important part of the discussion I had with @fantasai is that i think `--foo: blue; color: var(--foo);` absolutely needs to work, and having highlight pseudos change where `var()` looks up its custom props will break that. As long as that condition is satisfied, I don't have a strong opinion on what else we do, tho I do lean somewhat towards keeping the normal property inheritance and custom property inheritance the same, for simplicity of the model.

So if we do that, the problem is still just the original one - having to specify all the root custom props twice, once for the elements and once for the highlights. The root highlight inheriting from the root element happens to satisfy that.

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


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

Received on Thursday, 29 December 2022 23:13:18 UTC