Skip to content

Commit 48bdb22

Browse files
andruudemilio
authored andcommitted
[cssom] Don't serialize empty rules (@media)
#10974 missed a spot.
1 parent da73f07 commit 48bdb22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cssom-1/Overview.bs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1747,7 +1747,8 @@ To <dfn export>serialize a CSS rule</dfn>, perform one of the following in accor
17471747
<li>The string "<code>@media</code>", followed by a single SPACE (U+0020).</li>
17481748
<li>The result of performing <a>serialize a media query list</a> on rule's media query list.</li>
17491749
<li>A single SPACE (U+0020), followed by the string "{", i.e., LEFT CURLY BRACKET (U+007B), followed by a newline.</li>
1750-
<li>The result of performing <a>serialize a CSS rule</a> on each rule in the rule's {{CSSGroupingRule/cssRules}} list, separated by a newline and indented by two spaces.</li>
1750+
<li>The result of performing <a>serialize a CSS rule</a> on each rule in the rule's {{CSSGroupingRule/cssRules}} list,
1751+
filtering out empty strings, indenting each item with two spaces, all joined with newline.</li>
17511752
<li>A newline, followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D)</li>
17521753
</ol>
17531754

0 commit comments

Comments
 (0)