-
Notifications
You must be signed in to change notification settings - Fork 693
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-syntax-3] Restrict validity of substitution values and math functions #8717
Comments
All of the "substitution values" are invalid by virtue of only being defined in the context of a property on an element. Math functions are resolveable anywhere, tho. If we don't want to allow them, that's possible, we just need to define the rule grammar accordingly, for example to use |
It is clear to me. I was thinking of the author who would like to understand why they are invalid outside of this context. But ok.
Actually, I was more interested in this clarification. So they can be a valid keyframe selector? (If so, this issue can be closed.) Or should a keyframe selector be defined with |
Probably the latter, just due to compat. |
Ok. I will open a dedicated issue later. Maybe calculations can be usefull for #4907, and I find it hard to understand compatibility requirements, sometimes. |
In Chrome/FF,
calc(100% / 3) {}
is an invalid CSS keyframe.However in CSS Syntax:
Substitution values (
attr()
,mix()
,random-*()
,toggle()
) and math functions may have to be restricted here.In my opinion, substitution values should be invalid, except as a declaration value for a feature query in
@supports
, and math functions should only be valid in a declaration value.Related: #7838.
The text was updated successfully, but these errors were encountered: