Skip to content

Commit 0f933f3

Browse files
authored
[cssom] CSSKeyframesRule name serialization should sometimes be escaped (w3c#7893)
1 parent 6f02147 commit 0f933f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cssom-1/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,8 +1826,9 @@ To <dfn export>serialize a CSS rule</dfn>, perform one of the following in accor
18261826
The result of concatenating the following:
18271827
<ol>
18281828
<li>The literal string "<code>@keyframes</code>", followed by a single SPACE (U+0020).
1829-
<li>The <a lt="serialize an identifier">serialization as an identifier</a> of the
1830-
{{CSSKeyframesRule/name}} attribute.
1829+
<li>The serialization of the {{CSSKeyframesRule/name}} attribute. If the attribute is a CSS wide keyword, or the value ''default'', or the value ''none'',
1830+
then it is <a lt="serialize a string">serialized as a string</a>. Otherwise, it is <a lt="serialize an identifier">serialized as an identifier</a>.
1831+
<li>The string "<code> { </code>", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B), followed by a single SPACE (U+0020).
18311832
<li>The result of performing <a>serialize a CSS rule</a> on each rule in the rule's {{CSSKeyframesRule/cssRules}} list, separated by a newline and indented by two spaces.</li>
18321833
<li>A newline, followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D)</li>
18331834
</ol>
@@ -1837,7 +1838,7 @@ To <dfn export>serialize a CSS rule</dfn>, perform one of the following in accor
18371838
The result of concatenating the following:
18381839
<ol>
18391840
<li>The {{CSSKeyframeRule/keyText}}.
1840-
<li>The string "<code> { </code>", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B),
1841+
<li>The string "<code> { </code>", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B), followed by a single SPACE (U+0020).
18411842
<li>The result of performing <a>serialize a CSS declaration block</a> on the rule's associated declarations.
18421843
<li>If the rule is associated with one or more declarations, the string "<code> </code>", i.e., a single SPACE (U+0020).
18431844
<li>The string "<code>}</code>", RIGHT CURLY BRACKET (U+007D).

0 commit comments

Comments
 (0)