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
<pclass=p-summarydata-fill-with=abstract>This module describes, in general terms, the basic structure and syntax of CSS stylesheets. It defines, in detail, the syntax and parsing of CSS - how to turn a stream of bytes into a meaningful stylesheet.
75
+
<pclass=p-summarydata-fill-with=abstract><p>This module describes, in general terms, the basic structure and syntax of CSS stylesheets. It defines, in detail, the syntax and parsing of CSS - how to turn a stream of bytes into a meaningful stylesheet.</p>
76
+
76
77
<ahref=http://www.w3.org/TR/CSS/>CSS</a> is a language for describing the rendering of structured documents
<p>The <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-cascade-3/#at-ruledef-importtitle=@import>@import</a><adata-link-type=dfnhref=#at-ruletitle=at-rule>at-rule</a> is a simple statement.
289
290
After its name, it takes a single string or <spanclass=cssdata-link-type=maybetitle=url()>url()</span> function to indicate the stylesheet that it should import.</p>
290
291
291
-
<pre>@page :left {
292
-
margin-left: 4cm;
293
-
margin-right: 3cm;
294
-
}
292
+
<pre>@page :left {
293
+
margin-left: 4cm;
294
+
margin-right: 3cm;
295
+
}
295
296
</pre>
296
297
297
298
<p>The <spanclass=cssdata-link-type=maybetitle=@page>@page</span><adata-link-type=dfnhref=#at-ruletitle=at-rule>at-rule</a> consists of an optional page selector (the <spanclass=cssdata-link-type=maybetitle=:left>:left</span> pseudoclass),
except that its properties don’t apply to any "element",
301
302
but rather the page itself.</p>
302
303
303
-
<pre>@media print {
304
-
body { font-size: 10pt }
305
-
}
304
+
<pre>@media print {
305
+
body { font-size: 10pt }
306
+
}
306
307
</pre>
307
308
308
309
<p>The <aclass=cssdata-link-type=maybehref=http://dev.w3.org/csswg/css-conditional-3/#at-ruledef-mediatitle=@media>@media</a><adata-link-type=dfnhref=#at-ruletitle=at-rule>at-rule</a> begins with a media type
<p>If the returned string’s value is an <adata-link-type=dfnhref=#ascii-case-insensitivetitle="ascii case-insensitive">ASCII case-insensitive</a> match for "url",
2314
2315
and the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a> is U+0028 LEFT PARENTHESIS ((),
2315
2316
consume it.
2316
-
<adata-link-type=dfnhref=#consume-a-url-token0title="consume a url token">Consume a url token</a>,
2317
+
While the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a> is <adata-link-type=dfnhref=#whitespacetitle=whitespace>whitespace</a>,
2318
+
consume it.
2319
+
If the <adata-link-type=dfnhref=#next-input-tokentitle="next input token">next input token</a> is U+0022 QUOTATION MARK (")
2320
+
or U+0027 APOSTROPHE ('),
2321
+
<adata-link-type=dfnhref=#reconsume-the-current-input-code-pointtitle="reconsume the current input code point">reconsume the current input code point</a>,
2322
+
then create a <aclass="production css-code" data-link-type=typehref=#typedef-function-tokentitle="<function-token>"><function-token></a>
2323
+
with its value set to the returned string
2324
+
and return it.
2325
+
Otherwise,
2326
+
<adata-link-type=dfnhref=#consume-a-url-token0title="consume a url token">consume a url token</a>,
If the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a> is EOF,
2398
2408
return the <aclass="production css-code" data-link-type=typehref=#typedef-url-tokentitle="<url-token>"><url-token></a>.
2399
2409
2400
-
<li>
2401
-
If the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a> is a U+0022 QUOTATION MARK (") or U+0027 APOSTROPHE ('),
2402
-
then:
2403
-
2404
-
<ol>
2405
-
<li>
2406
-
Consume the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a>,
2407
-
then <adata-link-type=dfnhref=#consume-a-string-token0title="consume a string token">consume a string token</a>.
2408
-
2409
-
<li>
2410
-
If a <aclass="production css-code" data-link-type=typehref=#typedef-bad-string-tokentitle="<bad-string-token>"><bad-string-token></a> was returned,
2411
-
<adata-link-type=dfnhref=#consume-the-remnants-of-a-bad-url0title="consume the remnants of a bad url">consume the remnants of a bad url</a>,
2412
-
create a <aclass="production css-code" data-link-type=typehref=#typedef-bad-url-tokentitle="<bad-url-token>"><bad-url-token></a>,
2413
-
and return it.
2414
-
2415
-
<li>
2416
-
Set the <aclass="production css-code" data-link-type=typehref=#typedef-url-tokentitle="<url-token>"><url-token></a>’s value to the returned <aclass="production css-code" data-link-type=typehref=#typedef-string-tokentitle="<string-token>"><string-token></a>’s value.
2417
-
2418
-
<li>
2419
-
Consume as much <adata-link-type=dfnhref=#whitespacetitle=whitespace>whitespace</a> as possible.
2420
-
2421
-
<li>
2422
-
If the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a> is U+0029 RIGHT PARENTHESIS ()) or EOF,
2423
-
consume it and return the <aclass="production css-code" data-link-type=typehref=#typedef-url-tokentitle="<url-token>"><url-token></a>;
2424
-
otherwise,
2425
-
<adata-link-type=dfnhref=#consume-the-remnants-of-a-bad-url0title="consume the remnants of a bad url">consume the remnants of a bad url</a>,
2426
-
create a <aclass="production css-code" data-link-type=typehref=#typedef-bad-url-tokentitle="<bad-url-token>"><bad-url-token></a>,
2427
-
and return it.
2428
-
</ol>
2429
-
2430
2410
<li>
2431
2411
Repeatedly consume the <adata-link-type=dfnhref=#next-input-code-pointtitle="next input code point">next input code point</a> from the stream:
odd <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a> even <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a>
odd <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a> even <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a>
'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-one-plustitle=+>+</a>'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-opttitle=?>?</a><sup><ahref=#anb-plus>†</a></sup> n <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a>
'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-one-plustitle=+>+</a>'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-opttitle=?>?</a><sup><ahref=#anb-plus>†</a></sup> n <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a>
'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-one-plustitle=+>+</a>'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-opttitle=?>?</a><sup><ahref=#anb-plus>†</a></sup> n <var><signed-integer></var><aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a>
'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-one-plustitle=+>+</a>'<aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#mult-opttitle=?>?</a><sup><ahref=#anb-plus>†</a></sup> n <var><signed-integer></var><aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a>
0 commit comments