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

Allowing `calc()` does not really increase implementation complexity, and `env()` seems reasonable to allow as well. (But then let's consider doing that more generally, and not as a special thing for this).

However, allowing `var()` would introduce an awkward and unwanted dependency on the computed style of the root element, which we should probably avoid. It also seems a bit unfortunate from an author's standpoint to deviate from the computed-value-time/element-centric nature that `var()` currently has, and decide that it works in a different way here.

Going in the "author env()" direction seems more approachable, depending on its shape. There are other reasons we may need things like that as well, e.g. https://github.com/w3c/csswg-drafts/issues/6641.


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


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

Received on Tuesday, 4 January 2022 14:33:22 UTC