You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
weinig
changed the title
[css-animation] Is calc() to be used for the <keyframe-selector> production in the @keyframes prelude?
[css-animation] Is calc() allowed to be used for the <keyframe-selector> production in the @keyframes prelude?
Sep 12, 2024
Yes, it's generally expected that any place a type appears in the grammar, anything which produces that type is allowed (if valid in the context otherwise).
Historically UAs have been very inconsistent in where they allow math functions outside of properties (and even within properties), but it should work, yes.
The <keyframe-selector> production in the @keyframes prelude is defined via the grammar:
Generally, use of
<percentage>
implies the ability to use calc(), but it does not seem to be universally implemented that way.Is the intention of the spec that calc() should be allowed here?
The text was updated successfully, but these errors were encountered: