Skip to content

Commit 8f574f2

Browse files
committed
[css-syntax] Note: "Parse a declaration list" also parses at-rules.
1 parent b872f8e commit 8f574f2

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

css-syntax/Overview.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3084,6 +3084,11 @@ <h4 id=parse-a-rule><span class=secno>5.3.3. </span> <dfn
30843084
<h4 id=parse-a-declaration><span class=secno>5.3.4. </span> <dfn
30853085
id=parse-a-declaration0>Parse a declaration</dfn></h4>
30863086

3087+
<p class=note> Unlike "<a
3088+
href="#parse-a-list-of-declarations0"><i>Parse a list of
3089+
declarations</i></a>", this parses only a declaration and not an
3090+
at-rule.
3091+
30873092
<p> To <a href="#parse-a-declaration0"><i>parse a declaration</i></a>:
30883093

30893094
<ol>
@@ -3099,6 +3104,13 @@ <h4 id=parse-a-list-of-declarations><span class=secno>5.3.5. </span>
30993104
<dfn id=parse-a-list-of-declarations0>Parse a list of
31003105
declarations</dfn></h4>
31013106

3107+
<p class=note> Despite the name, this actually parses a mixed list of
3108+
declarations and at-rules, as CSS 2.1 does for <a
3109+
href="http://www.w3.org/TR/CSS21/page.html#page-box"><code
3110+
class=css>@page</code></a>. Unexpected at-rules (which could be all
3111+
of them, in a given context) are invalid and should be ignored by the
3112+
consumer.
3113+
31023114
<p> To <a href="#parse-a-list-of-declarations0"><i>parse a list of
31033115
declarations</i></a>:
31043116

css-syntax/Overview.src.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,6 +2040,10 @@ <h4>
20402040
<h4>
20412041
<dfn>Parse a declaration</dfn></h4>
20422042

2043+
<p class=note>
2044+
Unlike "<i>Parse a list of declarations</i>",
2045+
this parses only a declaration and not an at-rule.
2046+
20432047
<p>
20442048
To <i>parse a declaration</i>:
20452049

@@ -2056,6 +2060,13 @@ <h4>
20562060
<h4>
20572061
<dfn>Parse a list of declarations</dfn></h4>
20582062

2063+
<p class=note>
2064+
Despite the name,
2065+
this actually parses a mixed list of declarations and at-rules,
2066+
as CSS 2.1 does for <a href=http://www.w3.org/TR/CSS21/page.html#page-box>''@page''</a>.
2067+
Unexpected at-rules (which could be all of them, in a given context)
2068+
are invalid and should be ignored by the consumer.
2069+
20592070
<p>
20602071
To <i>parse a list of declarations</i>:
20612072

0 commit comments

Comments
 (0)