You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cssom/Overview.bs
+39-2Lines changed: 39 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -238,6 +238,11 @@ To <dfn export>serialize a URL</dfn> means to create a string represented by
238
238
<a lt="serialize a string">serialization</a> of the URL as a
239
239
string, followed by "<code>)</code>".
240
240
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
+
241
246
To <dfn export>serialize a comma-separated list</dfn> concatenate all items of
242
247
the list in list order while separating them by "<code>, </code>", i.e.,
243
248
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
1457
1462
1458
1463
1459
1464
<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>
1461
1474
1462
1475
<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>
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>
<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>
0 commit comments