-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-fonts] [palettes] Disallow usage of var() in @font-palette-values
#6931
Comments
CC @tabatkins |
Anders points to #6641; in there I say that "author env()" isn't great because it means that, in many cases, you'll be forced to duplicate the same information in both places. Most variables are document-global anyway, so the choice of whether you do it as a var()-on-root or author-defined env() would be mostly arbitrary, and having to decide between the two wouldn't be ideal. I'm supportive of the idea Anders hit in that thread, of allowing these sorts of non-element cases to use the initial value of custom properties, which are provided by |
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. |
I think that's a clumsy solution, as it requires a new |
I'm operating under the following constraints:
Beyond satisfying those 2 constraints, I have no opinion how this gets resolved. |
No worries, this is being discussed in #6641 for a general solution. |
So, should we close this issue and use whatever general solution emerges from |
This article also expresses a desire to support |
In #6631 (comment) @andruud suggests that usage of
var()
inside@font-palette-values
is unconventional compare to the usual usage ofvar()
.We may want to disallow
var()
usage in@font-palette-values
or - if that's not acceptable - specify it differently, so that it's evaluated in the element's context if really needed / possible.@andruud's feedback:
Spec text after ee8dada:
The text was updated successfully, but these errors were encountered: