Skip to content

Commit 196e80a

Browse files
committed
[cssom] Serialize an identifier should handle '-' and '--'. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=25426
1 parent 3fa26fe commit 196e80a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cssom/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,13 @@ by the concatenation of, for each character of the identifier:
198198
(U+0030 to U+0039) and the first character is a "<code>-</code>"
199199
(U+002D), then the character
200200
<a>escaped as code point</a>.
201+
<li>If the character is the first character and is a "<code>-</code>" (U+002D),
202+
and there is no second character,
203+
then the <a lt="escape a character">escaped</a> character.
204+
<li>If the character is the second character and is a "<code>-</code>" (U+002D),
205+
and the first character is also a "<code>-</code>" (U+002D),
206+
and there is no third character,
207+
then the <a lt="escape a character">escaped</a> character.
201208
<li>If the character is not handled by one of the above rules and is
202209
greater than or equal to U+0080, is "<code>-</code>" (U+002D) or
203210
"<code>_</code>" (U+005F), or is in one of the ranges \[0-9] (U+0030 to

0 commit comments

Comments
 (0)