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

Do note that another problem with the "just use initial values from `@property`" proposal is that these initial values cannot depend on other custom properties, whereas it's common today to do things like:

```css
--color-fuchsia-h: 300;
--color-fuchsia-s: 90%;
--color-fuchsia-l: 50%;
--color-fuchsia: hsl(var(--color-fuchsia-h) var(--color-fuchsia-s) var(--color-fuchsia-l));
--color-accent: var(--color-fuchsia);
```

With an `@document` (or whatever) rule, would properties inherit down to root etc or would they need to be re-specified on `:root`?



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


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

Received on Monday, 25 April 2022 17:09:55 UTC