Re: [csswg-drafts] [css-fonts] [palettes] Should calc() or var() be allowed inside @font-palette-values? (#6631)

Funny, we've literally just hit the same question about 30 minutes while bring our implementation up to date with recent changes.

I agree with @o-t-w on both points; in particular I think `override-colors` is an area where `var()` is very likely to be wanted by authors, although I realise that it's more complicated than normal as it's used in an at-rule rather than a regular declaration. 

We've implemented it as a special case, reevaluating the @font-palette-values declarations at the point the font is used to expand `var()`.  But then for print output we only have to do it once, so it's not so bad. I don't know how this would work for browsers, where the var could conceivably be animating




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


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

Received on Thursday, 4 November 2021 18:28:57 UTC