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
{{ message }}
Repository navigation
[css-animation] Is calc() allowed to be used for the <keyframe-selector> production in the @keyframes prelude? #10879
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?[/+]on 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.
Activity
[-][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?[/+]fantasai commentedon Sep 16, 2024
I think it wasn't explicitly thought about, but if there's no reason not to it might as well work.
tabatkins commentedon Sep 16, 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.
weinig commentedon Sep 17, 2024
Great, thanks.