| Summary: | animation-name or @keyframe identifiers with quotes are recognized | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Animations | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | dino, graouts, graouts, koivisto |
| Priority: | P2 | ||
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-02-27 14:45:39 PST
I think the CodePen is wrong and all the referenced material from it outdated. The current spec for CSS Animations specifies <string> as valid values at https://w3c.github.io/csswg-drafts/css-animations/#typedef-keyframes-name: <keyframes-name> = <custom-ident> | <string> There is also this note specifically showing using strings as valid: For example, the following two @keyframes rules have the same name, so the first will be ignored: @keyframes foo { /* ... */ } @keyframes "foo" { /* ... */ } I believe Chrome is incorrect while Firefox and Safari are correct. |