-
Notifications
You must be signed in to change notification settings - Fork 715
[css-animations] animation-name can contain string #3296
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
Conversation
The computed value for animation-name can contain strings. For example, the following are valid: @Keyframes "initial" { ... } @Keyframes "None" { ... } The computed value for animation-name `"initial", "None", None` should be `"initial", "None", none` Without qotes, the computed value would not round trip.
Proposed WPT |
Hm. I guess the question is; do we actually preserve this information in the underlying value? An alternative is to always make it an identifier, but serialize as a string when it's the handful of disallowed idents. I don't have a strong opinion; I'm fine with matching implementations. |
See #2435 |
Cool, so that suggests that we should keep the computed value as idents, and just specify that serialization produces strings in a few limited cases. |
@ericwilligers I think this PR is no longer correct. If I understand the resolution from #2435 correctly, we no longer want to allow From what I understand, it sounds like the behavior we want is:
|
I missed #2435
This implies we never serialize as strings, so This PR can be discarded. |
I believe that resolution doesn't capture what was actually discussed. Or at least, when I re-read through the minutes my understanding was that we would still serialize as strings when needed. Tab's comment above also seems to suggest that. |
Maybe it would just be better to say that anything that can be serialized as a |
Cancelling review request as per my comments above, I believe this PR doesn't capture the changes discussed in the minutes. |
https://jsfiddle.net/ericwilligers/5na1Ldpb/ shows that Firefox computes |
Note also that Firefox preserves |
IIRC this is a known bug of Firefox. |
|
The computed value for animation-name can contain strings.
For example, the following are valid:
@Keyframes "initial" { ... }
@Keyframes "None" { ... }
The computed value for animation-name
"initial", "None", None
should be
"initial", "None", none
Without quotes, the computed value would not round trip.