Skip to content

Commit 6356f8b

Browse files
committed
[cssom] Specify serialization of CSSMediaRule and CSSFontFaceRule
1 parent 54544ac commit 6356f8b

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

cssom/Overview.bs

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ To <dfn export>serialize a URL</dfn> means to create a string represented by
238238
<a lt="serialize a string">serialization</a> of the URL as a
239239
string, followed by "<code>)</code>".
240240

241+
To <dfn export>serialize a LOCAL</dfn> means to create a string represented by
242+
"<code>local(</code>", followed by the
243+
<a lt="serialize a string">serialization</a> of the URL as a
244+
string, followed by "<code>)</code>".
245+
241246
To <dfn export>serialize a comma-separated list</dfn> concatenate all items of
242247
the list in list order while separating them by "<code>, </code>", i.e.,
243248
COMMA (U+002C) followed by a single SPACE (U+0020).
@@ -1457,10 +1462,35 @@ To <dfn>serialize a CSS rule</dfn>, perform one of the following in accordance w
14571462

14581463

14591464
<dt>{{CSSMediaRule}}
1460-
<dd>Issue: ...
1465+
<dd>
1466+
The result of concatenating the following:
1467+
<ol>
1468+
<li>The string "<code>@media</code>" followed by a single SPACE (U+0020).</li>
1469+
<li>The result of performing <a>serialize a media query list<a> on rule's media query list.</li>
1470+
<li>A single SPACE (U+0020), followed by the string "{", i.e., LEFT CURLY BRACKET (U+007B), followed by a single SPACE (U+0020).</li>
1471+
<li>The result of performing <a>serialize a CSS rule</a> on the each rule in rule's CSSRules list.</li>
1472+
<li>A single SPACE (U+0020), followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D)</li>
1473+
</ol>
14611474

14621475
<dt>{{CSSFontFaceRule}}
1463-
<dd>Issue: ...
1476+
<dd>
1477+
The result of concatenating the following:
1478+
<ol>
1479+
<li>The string "<code>@font-face {</code>" followed by a single SPACE (U+0020).</li>
1480+
<li>The string "<code>font-family:</code>" followed by a single SPACE (U+0020).</li>
1481+
<li>The result of performing <a>serialize a URL</a> on the rule’s font family name.</li>
1482+
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).
1483+
<li>
1484+
If the rule's associated source list is not empty, follow these substeps:
1485+
<ol>
1486+
<li>A single SPACE (U+0020), followed by the string "<code>src:</code>", followed by a single SPACE (U+0020).</li>
1487+
<li>The result of invoking <a>serialize a comma-separated list</a> on performing <a>serialize a URL</a> or <a>serialize a LOCAL<a> for each source on the source list.</li>
1488+
<li>The string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1489+
</ol>
1490+
</li>
1491+
<li>A single SPACE (U+0020), followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D).</li>
1492+
</ol>
1493+
14641494
14651495
<dt>{{CSSPageRule}}
14661496
<dd>Issue: ...

0 commit comments

Comments
 (0)