Re: [csswg-drafts] [css-fonts] [palettes] Disallow usage of var() in `@font-palette-values` (#6931)

This keeps coming up. We don't want authors to be duplicating colors in these rules, but also we don't want a dependency on the root element's computed style.
What if we define a new rule (`::document`?) where authors can define values for custom properties that are **above** the root node, i.e. akin to applying to the actual document node. Then media queries and other at rules can use `var()` references, and they'd resolve relative to that, and because it's not an element, nothing depends on any element's computed style. 

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


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

Received on Friday, 4 February 2022 23:13:35 UTC