Re: [w3ctag/design-reviews] FYI Review of CSS Fonts 4 `font-palette`and `@font-palette-values` (Issue #719)

> In the current spec, `override-colors` does not support `var()`, which affects the developer's actual experience, and we have to define a lot of duplicate colors.

Why not? From https://www.w3.org/TR/css-fonts-4/#font-palette-values

> Functions such as [calc()](https://www.w3.org/TR/css-values-4/#funcdef-calc), [var()](https://www.w3.org/TR/css-variables-1/#funcdef-var), and [env()](https://drafts.csswg.org/css-env-1/#funcdef-env) are valid within the braces of a [@font-palette-values](https://www.w3.org/TR/css-fonts-4/#at-ruledef-font-palette-values) rule. They are evaluated within the context of the root element. Relative units are also evaluated within the context of the root element.

I interpret to mean `var()` being valid in `override-colors`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/719#issuecomment-1069125955
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/719/1069125955@github.com>

Received on Wednesday, 16 March 2022 13:25:19 UTC