|
1181 | 1181 |
|
1182 | 1182 | <li> |
1183 | 1183 | <p>When the resource is available, the document is in |
1184 | | - <span data-anolis-spec=dom title=concept-quirks-mode>quirks mode</span> |
| 1184 | + <span data-anolis-spec=html>quirks mode</span> |
1185 | 1185 | and the |
1186 | | - <span data-anolis-spec=html>Content-Type metadata</span> of |
| 1186 | + <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of |
1187 | 1187 | the resource is not a <span>supported styling language</span> change the |
1188 | | - <span data-anolis-spec=html>Content-Type metadata</span> of the resource |
| 1188 | + <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of the resource |
1189 | 1189 | to <code>text/css</code>.</p> |
1190 | 1190 |
|
1191 | 1191 | <p class="note">This step might never actually happen, but is included |
|
1259 | 1259 | <span data-anolis-spec=html>fetch</span> it.</p></li> |
1260 | 1260 |
|
1261 | 1261 | <li><p>When the resource is available, the document is in |
1262 | | - <span data-anolis-spec=dom title=concept-quirks-mode>quirks mode</span> |
1263 | | - and the <span data-anolis-spec=html>Content-Type metadata</span> of |
| 1262 | + <span data-anolis-spec=html>quirks mode</span> |
| 1263 | + and the <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of |
1264 | 1264 | the resource is not a <span>supported styling language</span> change the |
1265 | | - <span data-anolis-spec=html>Content-Type metadata</span> of the resource |
| 1265 | + <span data-anolis-spec=html title="content-type">Content-Type metadata</span> of the resource |
1266 | 1266 | to <code>text/css</code>.</p></li> |
1267 | 1267 |
|
1268 | 1268 | <li><p>If the resource is not in a |
|
1340 | 1340 | <p class="issue">Should a rule be instantiated in OM if there is a parse error? To |
1341 | 1341 | what extent should original (but non-valid) CSS text be captured in cssText?</p> |
1342 | 1342 |
|
1343 | | - <p>To <dfn>serialize a CSS rule</dfn> depends on the type of CSS rule, as |
1344 | | - follows:</p> |
| 1343 | + <p>To <dfn>serialize a CSS rule</dfn>, perform one of the following in accordance with the its <span>rule type</span>:</p> |
1345 | 1344 |
|
1346 | 1345 | <dl class="switch"> |
1347 | 1346 | <dt><code>CSSStyleRule</code></dt> |
1348 | | - <dd><p class="issue">...</p></dd> |
| 1347 | + <dd> |
| 1348 | + <p>The result of concatenating the following:</p> |
| 1349 | + <ol> |
| 1350 | + <li>The result of performing <span>serialize a group of selectors</span> on the rule's associated selectors.</li> |
| 1351 | + <li>The string "<code> { </code>", i.e., a single SPACE (U+0020), followed by LEFT CURLY BRACKET (U+007B), |
| 1352 | + followed by a single SPACE (U+0020).</li> |
| 1353 | + <li>The result of performing <span>serialize a CSS declaration block</span> on the rule's associated declarations.</li> |
| 1354 | + <li>If the rule is associated with one or more declarations, the string "<code> </code>", i.e., a single SPACE (U+0020).</li> |
| 1355 | + <li>The string "<code>}</code>", RIGHT CURLY BRACKET (U+007D). |
| 1356 | + </ol> |
| 1357 | + </dd> |
1349 | 1358 |
|
1350 | 1359 | <dt><code>CSSCharsetRule</code></dt> |
1351 | | - <dd><p class="issue">...</p></dd> |
| 1360 | + <dd> |
| 1361 | + <p>The result of concatenating the following:</p> |
| 1362 | + <ol> |
| 1363 | + <li>The string "<code>@charset</code>" followed by a single SPACE (U+0020).</li> |
| 1364 | + <li>The result of performing <span>serialize a string</span> on the <span data-anolis-spec=html>preferred MIME name</span> of the rule's encoding.</li> |
| 1365 | + <li>The string "<code>;</code>", i.e., SEMICOLON (U+003B). |
| 1366 | + </ol> |
| 1367 | + <div class="example"> |
| 1368 | + <pre>@charset "UTF-8";</pre> |
| 1369 | + </div> |
| 1370 | + </dd> |
1352 | 1371 |
|
1353 | 1372 | <dt><code>CSSImportRule</code></dt> |
1354 | 1373 | <dd> |
1355 | | - <p>The result of concatenating these strings:</p> |
| 1374 | + <p>The result of concatenating the following:</p> |
1356 | 1375 | <ol> |
1357 | | - <li>The literal string "<code>@import</code>", followed by a single SPACE |
| 1376 | + <li>The string "<code>@import</code>" followed by a single SPACE |
1358 | 1377 | (U+0020), followed by the <span title="serialize a URL">URL escaped</span> |
1359 | 1378 | value of the <code title="dom-CSSImportRule-href">href</code> |
1360 | 1379 | attribute.</li> |
|
0 commit comments