@@ -2043,7 +2043,8 @@ <h3 id=tree-construction><span class=secno>3.6. </span> Tree Construction</h3>
20432043
20442044 < p > The input to the tree construction stage is a sequence of tokens from
20452045 the tokenization stage. The output is a tree of items with a stylesheet at
2046- the root and all other nodes being at-rules or style rules.
2046+ the root and all other nodes being at-rules, style rules, or declarations.
2047+
20472048
20482049 < p > The construction of this stylesheet does not take into account
20492050 unrecognized items, like unknown properties or at-rules. It simply
@@ -2057,17 +2058,24 @@ <h3 id=tree-construction><span class=secno>3.6. </span> Tree Construction</h3>
20572058 < dl >
20582059 < dt > stylesheet
20592060
2060- < dd > A stylesheet contains a list of at-rules and style rules.
2061+ < dd > A stylesheet has a value consisting of a list of at-rules and style
2062+ rules.
20612063
20622064 < dt > at-rule
20632065
20642066 < dd > An at-rule has a name, a prelude consisting of a list of primitives,
2065- and possibly a rule block or declaration block.
2067+ and a value consisting of a list of at-rules, style rules, or
2068+ declarations.
20662069
20672070 < dt > style rule
20682071
20692072 < dd > A style rule has a selector consisting of a list of primitives, and a
2070- declaration block.
2073+ value consisting of a list of at-rules or declarations.
2074+
2075+ < dt > declaration
2076+
2077+ < dd > A declaration has a name and a value consisting of a list of
2078+ primitives.
20712079
20722080 < dt > primitive
20732081
@@ -2092,19 +2100,7 @@ <h3 id=tree-construction><span class=secno>3.6. </span> Tree Construction</h3>
20922100 < dt > simple block
20932101
20942102 < dd > A simple block has an associated token (either a [, (, or { token)
2095- and a value which is a list of primitives.
2096-
2097- < dt > rule block
2098-
2099- < dd > A rule block contains a list of at-rules or style rules.
2100-
2101- < dt > declaration block
2102-
2103- < dd > A declaration block contains a list of at-rules or declarations.
2104-
2105- < dt > declaration
2106-
2107- < dd > A declaration has a name and a value which is a list of primitives.
2103+ and a value consisting of a list of primitives.
21082104 </ dl >
21092105
21102106 < div class =issue >
@@ -2219,9 +2215,8 @@ <h4 id=at-rule-mode><span class=secno>3.6.3. </span> <dfn
22192215
22202216 < dd > Pop the < a href ="#current-rule "> < i > current rule</ i > </ a > from the < a
22212217 href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > and append it
2222- to the list of rules for the new < a href ="#current-rule "> < i > current
2223- rule</ i > </ a > . < a
2224- href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
2218+ to the value of the new < a href ="#current-rule "> < i > current rule</ i > </ a > .
2219+ < a href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
22252220 current rule's content mode.</ i > </ a >
22262221
22272222 < dt > { token
@@ -2276,9 +2271,8 @@ <h4 id=rule-mode><span class=secno>3.6.4. </span> <dfn id=rule-mode0>Rule
22762271
22772272 < dd > Pop the < a href ="#current-rule "> < i > current rule</ i > </ a > from the < a
22782273 href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > , and append it
2279- to the list of rules for the new < a href ="#current-rule "> < i > current
2280- rule</ i > </ a > . < a
2281- href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
2274+ to the value of the new < a href ="#current-rule "> < i > current rule</ i > </ a > .
2275+ < a href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
22822276 current rule's content mode</ i > </ a > .
22832277
22842278 < dt > at-keyword token
@@ -2290,7 +2284,7 @@ <h4 id=rule-mode><span class=secno>3.6.4. </span> <dfn id=rule-mode0>Rule
22902284
22912285 < dt > anything else
22922286
2293- < dd > < i > Create a style rule</ i > and push it onto the < a
2287+ < dd > Create a style rule and push it onto the < a
22942288 href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > . Switch to the
22952289 < a href ="#style-rule-mode0 "> < i > style-rule mode</ i > </ a > . Reprocess the < a
22962290 href ="#current-input-token "> < i > current input token</ i > </ a > .
@@ -2440,21 +2434,20 @@ <h4 id=declaration-value-mode><span class=secno>3.6.8. </span> <dfn
24402434 < dt > semicolon token
24412435
24422436 < dd > Append the < a href ="#current-declaration "> < i > current
2443- declaration</ i > </ a > to the list of declarations for the < a
2437+ declaration</ i > </ a > to the value of the < a
24442438 href ="#current-rule "> < i > current rule</ i > </ a > . < a
24452439 href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
24462440 current rule's content mode</ i > </ a > .
24472441
24482442 < dt > } token
24492443
24502444 < dd > Append the < a href ="#current-declaration "> < i > current
2451- declaration</ i > </ a > to the list of declarations for the < a
2445+ declaration</ i > </ a > to the value of the < a
24522446 href ="#current-rule "> < i > current rule</ i > </ a > . Pop the < a
24532447 href ="#current-rule "> < i > current rule</ i > </ a > from the < a
24542448 href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > , and append it
2455- to the list of rules for the new < a href ="#current-rule "> < i > current
2456- rule</ i > </ a > . < a
2457- href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
2449+ to the value of the new < a href ="#current-rule "> < i > current rule</ i > </ a > .
2450+ < a href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
24582451 current rule's content mode</ i > </ a > .
24592452
24602453 < dt > anything else
@@ -2483,21 +2476,20 @@ <h4 id=declaration-end-mode><span class=secno>3.6.9. </span> <dfn
24832476 < dt > semicolon token
24842477
24852478 < dd > Append the < a href ="#current-declaration "> < i > current
2486- declaration</ i > </ a > to the list of declarations for the < a
2479+ declaration</ i > </ a > to the value of the < a
24872480 href ="#current-rule "> < i > current rule</ i > </ a > . < a
24882481 href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
24892482 current rule's content mode</ i > </ a > .
24902483
24912484 < dt > } token
24922485
24932486 < dd > Append the < a href ="#current-declaration "> < i > current
2494- declaration</ i > </ a > to the list of declarations for the < a
2487+ declaration</ i > </ a > to the value of the < a
24952488 href ="#current-rule "> < i > current rule</ i > </ a > . Pop the < a
24962489 href ="#current-rule "> < i > current rule</ i > </ a > from the < a
24972490 href ="#stack-of-open-rules "> < i > stack of open rules</ i > </ a > , and append it
2498- to the list of rules for the new < a href ="#current-rule "> < i > current
2499- rule</ i > </ a > . < a
2500- href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
2491+ to the value of the new < a href ="#current-rule "> < i > current rule</ i > </ a > .
2492+ < a href ="#switch-to-the-current-rules-content-mode0 "> < i > Switch to the
25012493 current rule's content mode</ i > </ a > .
25022494
25032495 < dt > anything else
0 commit comments