@@ -607,7 +607,8 @@ <h3 id=tokenization><span class=secno>3.4. </span> Tokenization</h3>
607607 < p > The output of the tokenization step is a series of zero or more of the
608608 following tokens: identifier, function, at-keyword, hash, string,
609609 bad-string, url, bad-url, delim, number, percentage, dimension,
610- unicode-range, whitespace, cdo, cdc, colon, semicolon, [, ], (, ), {, }.
610+ unicode-range, whitespace, comment, cdo, cdc, colon, semicolon, [, ], (,
611+ ), {, }.
611612
612613 < p > Identifier, function, at-keyword, hash, string, and url tokens have a
613614 value composed of zero or more characters. Delim tokens have a value
@@ -1060,13 +1061,13 @@ <h4 id=comment-state><span class=secno>3.4.8. </span> <dfn
10601061 < dt > U+002A ASTERISK (*)
10611062
10621063 < dd > If the < a href ="#next-input-character "> < i > next input
1063- character</ i > </ a > is U+002F SOLIDUS (/), consume it, and switch to the < a
1064- href ="#data-state0 "> < i > data state</ i > </ a > .
1064+ character</ i > </ a > is U+002F SOLIDUS (/), consume it, emit a comment
1065+ token, and switch to the < a href ="#data-state0 "> < i > data state</ i > </ a > .
10651066 < p > Otherwise, do nothing and remain in this state.
10661067
10671068 < dt > EOF
10681069
1069- < dd > This is a < i > parse error</ i > . Switch to the < a
1070+ < dd > This is a < i > parse error</ i > . Emit a comment token. Switch to the < a
10701071 href ="#data-state0 "> < i > data state</ i > </ a > . Reconsume the < a
10711072 href ="#current-input-character "> < i > current input character</ i > </ a > .
10721073
@@ -2092,7 +2093,7 @@ <h3 id=tree-construction><span class=secno>3.6. </span> Tree Construction</h3>
20922093
20932094 < dd > The tokens that can appear in the tree are: identifier, hash, string,
20942095 url, delim, number, percentage, dimension, unicode-range, whitespace,
2095- cdo, cdc, colon, semicolon, at-keyword, ], ), and }.
2096+ comment, cdo, cdc, colon, semicolon, at-keyword, ], ), and }.
20962097 < p class =note > This means that the following tokens emitted by the
20972098 tokenizer stage will < strong > not</ strong > appear in the stylesheet
20982099 object: function, bad-string, bad-url, [, (, {. < span class =issue > I need
@@ -2682,7 +2683,9 @@ <h3 id=changes-from-css-2.1-core-grammar><span class=secno>3.7. </span>
26822683 browsers, please let me know as it's almost certainly unintentional.
26832684
26842685 < ol >
2685- < li >
2686+ < li > No whitespace or comments are allowed between the DELIM(!) and
2687+ IDENT(important) tokens when processing an !important directive at the
2688+ end of a style rule.
26862689 </ ol >
26872690 <!--
26882691
0 commit comments