We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<keyframes-name> = <custom-ident> | <string>
https://drafts.csswg.org/css-animations/#typedef-keyframes-name
Often <string> can be compressed to <custom-ident>, However, CSS-wide keywords and none must remain in quotation marks.
<string>
<custom-ident>
none
@keyframes "one two" { 0% { left: 100px; } } @keyframes "none" { to { right: 100px; } } .foo { animation-name: "none", "unset", "one two"; }
This WPT PR has more detailed test cases. web-platform-tests/wpt#35903
@keyframes ""{0%{left:100px}}@keyframes ""{to{right:100px}}.foo{animation-name:"none","unset","one two"}
@keyframes one\ two{0%{left:100px}}@keyframes"none"{to{right:100px}}.foo{animation-name:"none","unset",one\ two}
The text was updated successfully, but these errors were encountered:
c9b24d8
Thanks for the quick fix, but this issue is also expected to compress <string> and handle CSS-wide keywords correctly.
The ultimate goal is for esbuild to parse <keyframes-name> in its entirety.
<keyframes-name>
I think @CGQAQ's PR #2556 is working on these issues and hopefully will reopen this issue.
Sorry, something went wrong.
fix #2555: keyframe animation names can be strings
e77404a
Successfully merging a pull request may close this issue.
Spec
https://drafts.csswg.org/css-animations/#typedef-keyframes-name
Often
<string>
can be compressed to<custom-ident>
, However, CSS-wide keywords andnone
must remain in quotation marks.Input
Actual output
This WPT PR has more detailed test cases. web-platform-tests/wpt#35903
Expected
The text was updated successfully, but these errors were encountered: