Skip to content

Commit 000b1cf

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

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

cssom/Overview.bs

Lines changed: 39 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,41 @@ 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 newline.</li>
1471+
<li>The result of performing <a>serialize a CSS rule</a> on the each rule, seperated by a newline and indented by two spaces, in rule's CSSRules list.</li>
1472+
<li>A newline, 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 string</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>If rule's associated <code>unicode-range</code> descriptor is present, a single SPACE (U+0020), followed by the string "<code>unicode-range:</code>", followed by a single SPACE (U+0020), followed by the result of performing serialize a <unicode-rule>, followed by the string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1492+
<li>If rule's associated <code>font-variant</code> descriptor is present, a single SPACE (U+0020), followed by the string "<code>font-variant:</code>", followed by a single SPACE (U+0020), followed by the result of performing serialize a <font-variant>, followed by the string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1493+
<li>If rule's associated <code>font-feature-settings</code> descriptor is present, a single SPACE (U+0020), followed by the string "<code>font-feature-settings:</code>", followed by a single SPACE (U+0020), followed by the result of performing serialize a <font-feature-settings>, followed by the string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1494+
<li>If rule's associated <code>font-stretch</code> descriptor is present, a single SPACE (U+0020), followed by the string "<code>font-stretch:</code>", followed by a single SPACE (U+0020), followed by the result of performing serialize a <font-stretch>, followed by the string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1495+
<li>If rule's associated <code>font-weight</code> descriptor is present, a single SPACE (U+0020), followed by the string "<code>font-weight:</code>", followed by a single SPACE (U+0020), followed by the result of performing serialize a <weight>, followed by the string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1496+
<li>If rule's associated <code>font-style</code> descriptor is present, a single SPACE (U+0020), followed by the string "<code>font-style:</code>", followed by a single SPACE (U+0020), followed by the result of performing serialize a <style>, followed by the string "<code>;</code>", i.e., SEMICOLON (U+003B).</li>
1497+
<li>A single SPACE (U+0020), followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D).</li>
1498+
</ol>
1499+
14641500
14651501
<dt>{{CSSPageRule}}
14661502
<dd>Issue: ...
@@ -2848,6 +2884,7 @@ Mike Sherov,
28482884
Myles C. Maxfield,
28492885
Morten Stenshorne,
28502886
Ms2ger,
2887+
Nazım Can Altınova,
28512888
Øyvind Stenhaug,
28522889
Peter Sloetjes,
28532890
Philip Jägenstedt,

0 commit comments

Comments
 (0)