Skip to content

Commit 41a4d08

Browse files
[css-animations-1] Make @keyframes name disallow empty <string> (w3c#13151)
* The @keyframs-name style rule should not allow empty <string>. * Apply suggestion from @tabatkins --------- Co-authored-by: Tab Atkins Jr. <jackalmage@gmail.com>
1 parent 35025cc commit 41a4d08

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

css-animations-1/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,12 @@ Declaring Keyframes</h2>
227227
As normal for <<custom-ident>>s and <<string>>s,
228228
the names are fully <a>case-sensitive</a>;
229229
two names are equal only if they are codepoint-by-codepoint equal.
230-
The <<custom-ident>> additionally excludes the ''animation-name/none'' keyword.
230+
The <<custom-ident>> additionally excludes the ''animation-name/none'' keyword.
231+
The <<string>> additionally excludes the empty string
232+
(but allows the string "none" and other excluded keywords).
233+
When serialized, the value is serialized as an <<ident>>
234+
unless it's a disallowed keyword,
235+
in which case it's serialized as a <<string>>.
231236

232237
<div class=example>
233238
For example, the following two ''@keyframes'' rules have the same name,

0 commit comments

Comments
 (0)