Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1899,9 +1899,13 @@ To <dfn export>serialize a CSS rule</dfn>, perform one of the following in accor
The result of concatenating the following:
<ol>
<li>The string "<code>@font-face {</code>", followed by a single SPACE (U+0020).</li>
<li>The string "<code>font-family:</code>", followed by a single SPACE (U+0020).</li>
<li>The result of performing <a>serialize a string</a> on the rule’s font family name.</li>
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).
<li>If the '@font-face/font-family' descriptor is present:
<ol>
<li>The string "<code>font-family:</code>", followed by a single SPACE (U+0020).</li>
Comment on lines 1901 to +1904

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm late, but I think the space added in step 1 also needs changing, to be added in step 2.1 instead. Otherwise, if there is no font-family, then step 3.1 below will mean there are two spaces between the { and the first descriptor name.

<li>The result of performing <a>serialize a string</a> on the rule’s font family name.</li>
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
</ol>
</li>
<li>
If the rule's associated source list is not empty, follow these substeps:
<ol>
Expand Down