-
Notifications
You must be signed in to change notification settings - Fork 711
[css-animations] Consider accepting string as animation name #118
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
Comments
I'm fine with allowing this. Ignoring compat, it lets authors provide animation names without risk of them being misparsed for accidentally coinciding with one of the other animation keywords. |
I started working on the edits for this but I'm wondering, is this sufficient? |
It seems there is a grammar in section 4 just before 4.1, which is not updated. |
And I think it would also be good to make it clear whether there is any difference between rules defined with a string name and those with an identifier name. I guess (but not verified carefully) that current implementations which support it would treat |
We resolved in the telcon to accept this. |
Add description of what window.navigate() is for
I'm going to fix the error that esbuild's CSS parser warning when parsing $ esbuild test.css --minify
▲ [WARNING] Expected identifier but found "\"foo\""
m.css:1:11:
1 │ @keyframes "foo" {
╵ ~~~~~
1 warning
@keyframes ""{0%{background:#00f}to{background:green}}
This is really messed up. I hope that such compatibility issues can be avoided or reduced in the future, and that the addition of string brings a greater cost to other parsers. |
@nt1m Says: #6405 (comment)
|
Per that bug, looks like CSS wasn't using WPT at that point in time:
|
@birtles Thank you for the additional information, do you have plans to update WPT? |
The |
I'm afraid I don't, at this stage. I was working on rewriting the WPT for CSS Animations before I left Mozilla but ran out of time to finish it. |
WebKit's implementation supports using a string after
@keyframes
andanimation-name
. Blink supports this syntax for prefixed stuffs but not for unprefixed ones.We've seen a website depends on this syntax (webcompat/web-bugs#2337). Not sure how widely this kind of thing is used, but in general, I guess it is not a bad idea to accept string as animation name.
I raised this for the compat spec (whatwg/compat#43) but it'd probably better to be discussed in CSSWG.
The text was updated successfully, but these errors were encountered: