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

https://github.com/w3c/csswg-drafts/issues/7762#issuecomment-3510548776:
> There are already a test [1] checking that an empty string is invalid for "animation-name".
> 
> https://github.com/web-platform-tests/wpt/blob/master/css/css-animations/parsing/animation-name-invalid.html
> 
> Do you think we still need ref tests for this case ?

(Answering this^ question: we probably do need a more-thorough test of some sort (whether a reftest or a computed-style test), since per my comments above, `animation-name-invalid.html` only checks that the empty string **produces an empty specified-style serialization**.  But in fact all browsers treat it as parseable and as having an effect on the computed style; but Chrome/Safari just serialize it as the empty string in `elem.style`.)

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


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

Received on Wednesday, 12 November 2025 22:19:27 UTC