Skip to content

Commit 75299e7

Browse files
authored
[cssom-1] font-family descriptor should not be serialized if not present, fix #13323 (#13847)
1 parent c5657c2 commit 75299e7

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

cssom-1/Overview.bs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1899,9 +1899,13 @@ To <dfn export>serialize a CSS rule</dfn>, perform one of the following in accor
18991899
The result of concatenating the following:
19001900
<ol>
19011901
<li>The string "<code>@font-face {</code>", followed by a single SPACE (U+0020).</li>
1902-
<li>The string "<code>font-family:</code>", followed by a single SPACE (U+0020).</li>
1903-
<li>The result of performing <a>serialize a string</a> on the rule’s font family name.</li>
1904-
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).
1902+
<li>If the '@font-face/font-family' descriptor is present:
1903+
<ol>
1904+
<li>The string "<code>font-family:</code>", followed by a single SPACE (U+0020).</li>
1905+
<li>The result of performing <a>serialize a string</a> on the rule’s font family name.</li>
1906+
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1907+
</ol>
1908+
</li>
19051909
<li>
19061910
If the rule's associated source list is not empty, follow these substeps:
19071911
<ol>

0 commit comments

Comments
 (0)