Re: [csswg-drafts] [css-animations] Clarify whether `<keyframes-name>` supports the empty string (#7762)

> So indeed I think the change should happen in `<keyframes-name>`, and thus make both `@keyframes "" {}` and `animation-name: ""` invalid.

I do not disagree with the proposed resolution, but I would like to point out that a value assigned to `CSSKeyframesRule.name` is neither defined in the spec or implemented in browsers as having to be parsed against `<keyframes-name>`. For example `CSSKeyframesRule.name = 1` is valid, while `animation-name: 1` is not. It might therefore be useful to clarify this point in the specification at some point (#9364).

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7762#issuecomment-3684030194 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 22 December 2025 20:21:43 UTC