Skip to content

Commit cbe685e

Browse files
committed
[cssom] Now that empty custom props serialize their value as space, make sure serializing a decl doesn't produce two spaces for them. #9847
1 parent 2d9418f commit cbe685e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cssom-1/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,8 @@ these steps:
22962296
<li>Let <var>s</var> be the empty string.
22972297
<li>Append <var>property</var> to <var>s</var>.
22982298
<li>Append "<code>: </code>" (U+003A U+0020) to <var>s</var>.
2299-
<li>Append <var>value</var> to <var>s</var>.
2299+
<li>If <var>value</var> contains any non-whitespace characters,
2300+
append <var>value</var> to <var>s</var>.
23002301
<li>If the <i>important</i> flag is set, append "<code> !important</code>" (U+0020 U+0021 U+0069 U+006D U+0070 U+006F U+0072 U+0074 U+0061 U+006E
23012302
U+0074) to <var>s</var>.
23022303
<li>Append "<code>;</code>" (U+003B) to <var>s</var>.
@@ -3407,4 +3408,4 @@ initial version of the alternative style sheets API and canonicalization
34073408
(now serialization) rules for CSS values.
34083409

34093410
</body>
3410-
</html>
3411+
</html>

0 commit comments

Comments
 (0)