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

I can't think of a use case for calc(). 
Support for var() is very important. It's common to use CSS custom properties to store color values. It's overwhelmingly likely that people will want to use these color variables in conjunction with @font-palette-values.

The following code doesn't work in Safari Technology Preview 134.

```
:root {
    --yellow: lch(93% 132 94);
}

@font-palette-values --Lurid {
    font-family: bungee;
    base-palette: 0;
    override-colors:
        0 lch(76% 132 159.026),
        1 var(--yellow);
}

.lurid {
  font-palette: --Lurid;
 font-family: 'bungee';
}
``` 

-- 
GitHub Notification of comment by o-t-w
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6631#issuecomment-961297733 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:13:51 UTC