Skip to content
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-animations-2] it should be possible to set animation-composition using the animation shorthand #6929

Open
graouts opened this issue Jan 4, 2022 · 3 comments
Assignees

Comments

@graouts
Copy link
Contributor

graouts commented Jan 4, 2022

The CSS Animations Level 2 spec introduces the animation-composition but does not support the newly introduced <single-animation-composition> value to be set using the animation shorthand property.

I believe this is an oversight and will propose a spec edit to allow animation-composition to be set using the animation shorthand just like other animation- properties.

graouts added a commit to graouts/csswg-drafts that referenced this issue Jan 4, 2022
@graouts
Copy link
Contributor Author

graouts commented Jan 7, 2022

I have some WPT coverage written up in graouts/wpt@9b0d0d4.

@devongovett
Copy link
Contributor

I was just working on implementing a parser for this and noticed the same thing. The spec includes examples for animation-composition values in the animation shorthand here: https://drafts.csswg.org/css-animations-2/#animation-composition, but it is not included in the grammar for the shorthand: https://drafts.csswg.org/css-animations-2/#animation-shorthand. Which one is right?

@ydaniv
Copy link
Contributor

ydaniv commented May 20, 2024

The example seems to be ahead of its time.

@dbaron any reason not to add composition to the shorthand's grammar? Is there a risk in introducing new keywords that could collide with name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants