Skip to content

Commit ad49297

Browse files
committed
[css3-syntax] editorial
1 parent d8fdd23 commit ad49297

2 files changed

Lines changed: 25 additions & 37 deletions

File tree

css3-syntax/Overview.html

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ <h2 class="no-num no-toc" id=contents> Table of contents</h2>
160160
<li><a href="#syntax-description"><span class=secno>2. </span> Description
161161
of CSS's Syntax</a>
162162

163-
<li><a href="#parsing"><span class=secno>3. </span> Parsing</a>
163+
<li><a href="#tokenizing-and-parsing-css"><span class=secno>3. </span>
164+
Tokenizing and Parsing CSS</a>
164165
<ul class=toc>
165166
<li><a href="#overview-of-the-parsing-model"><span class=secno>3.1.
166167
</span> Overview of the Parsing Model</a>
@@ -483,7 +484,8 @@ <h2 id=syntax-description><span class=secno>2. </span> Description of CSS's
483484
special syntaxes of individual <a href="#at-rules"><i>at-rules</i></a> can
484485
be found in the specs that define them.
485486

486-
<h2 id=parsing><span class=secno>3. </span> Parsing</h2>
487+
<h2 id=tokenizing-and-parsing-css><span class=secno>3. </span> Tokenizing
488+
and Parsing CSS</h2>
487489

488490
<p> User agents must use the parsing rules described in this section to
489491
generate the CSSOM trees from text/css resources. Together, these rules
@@ -1989,10 +1991,10 @@ <h3 id=changes-from-css-2.1-tokenizer><span class=secno>3.5. </span>
19891991
be unintentional.
19901992

19911993
<p> Note that the point of this spec is to match reality; changes from
1992-
CSS2.1<code class=css>s tokenizer are nearly always because the
1993-
tokenizer specified something that doesn</code>t match actual browser
1994-
behavior, or left something unspecified. If some detail doesn't match
1995-
browsers, please let me know as it's almost certainly unintentional.
1994+
CSS2.1&apos;s tokenizer are nearly always because the tokenizer specified
1995+
something that doesn't match actual browser behavior, or left something
1996+
unspecified. If some detail doesn't match browsers, please let me know as
1997+
it's almost certainly unintentional.
19961998

19971999
<ol>
19982000
<li> The DASHMATCH and INCLUDES tokens have been removed. They can instead
@@ -2014,9 +2016,10 @@ <h3 id=changes-from-css-2.1-tokenizer><span class=secno>3.5. </span>
20142016
token is mentioned in other specs). The only consequence of this is that
20152017
comments can no longer be inserted between the sign and the number.
20162018

2017-
<li> Several flags have been added for SVG-compatible tokenizing, so that
2018-
a single state machine can be used for both "vanilla" and SVG CSS
2019-
parsing.
2019+
<li> Some flags have been added for SVG-compatible tokenizing, so that a
2020+
single state machine can be used for both "vanilla" and SVG CSS parsing.
2021+
2022+
<li> Scientific notation is supported for numbers, per WG resolution.
20202023
</ol>
20212024
<!--
20222025
PPPPPPPPPPPPPPPPP AAA RRRRRRRRRRRRRRRRR SSSSSSSSSSSSSSS EEEEEEEEEEEEEEEEEEEEEERRRRRRRRRRRRRRRRR
@@ -2823,22 +2826,15 @@ <h3 id=changes-from-css-2.1-core-grammar><span class=secno>3.7. </span>
28232826
IDENT(important) tokens when processing an !important directive at the
28242827
end of a style rule.
28252828

2826-
<li> Scientific notation is supported for numbers, per WG resolution.
2827-
2828-
<li> The + sign is now part of the number token that it precedes, rather
2829-
than always being a separate DELIM(+) token.
2830-
2831-
<li> The INCLUDES and DASHMATCH tokens have been dropped. They're not
2832-
actually necessary (the Selectors parser can handle them as two DELIM
2833-
tokens just as well) and it's confusing to have them show up in the Core
2834-
Grammar when the other types of attribute selector options don't.
2835-
28362829
<li> The handling of some miscellanous ‘<code
28372830
class=property>special</code>’ tokens (like an unmatched } token)
28382831
showing up in various places in the grammar has been specified with some
28392832
reasonable behavior shown by at least one browser. Previously,
28402833
stylesheets with those tokens in those places just didn't match the
28412834
stylesheet grammar at all, so their handling was totally undefined.
2835+
2836+
<li> Quirks mode parsing differences are now officially recognized in the
2837+
parser.
28422838
</ol>
28432839
<!--
28442840

css3-syntax/Overview.src.html

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ <h2 id='syntax-description'>
210210
The special syntaxes of individual <i>at-rules</i> can be found in the specs that define them.
211211

212212
<h2>
213-
Parsing</h2>
213+
Tokenizing and Parsing CSS</h2>
214214

215215
<p>
216216
User agents must use the parsing rules described in this section to generate the CSSOM trees from text/css resources.
@@ -1957,7 +1957,7 @@ <h3>
19571957

19581958
<p>
19591959
Note that the point of this spec is to match reality;
1960-
changes from CSS2.1's tokenizer are nearly always because the tokenizer specified something that doesn't match actual browser behavior,
1960+
changes from CSS2.1&apos;s tokenizer are nearly always because the tokenizer specified something that doesn't match actual browser behavior,
19611961
or left something unspecified.
19621962
If some detail doesn't match browsers,
19631963
please let me know
@@ -1987,9 +1987,13 @@ <h3>
19871987
The only consequence of this is that comments can no longer be inserted between the sign and the number.
19881988

19891989
<li>
1990-
Several flags have been added for SVG-compatible tokenizing,
1990+
Some flags have been added for SVG-compatible tokenizing,
19911991
so that a single state machine can be used for both "vanilla" and SVG CSS parsing.
19921992

1993+
<li>
1994+
Scientific notation is supported for numbers,
1995+
per WG resolution.
1996+
19931997
</ol>
19941998

19951999

@@ -2828,28 +2832,16 @@ <h3>
28282832
No whitespace or comments are allowed between the DELIM(!) and IDENT(important) tokens
28292833
when processing an !important directive at the end of a style rule.
28302834

2831-
<li>
2832-
Scientific notation is supported for numbers,
2833-
per WG resolution.
2834-
2835-
<li>
2836-
The + sign is now part of the number token that it precedes,
2837-
rather than always being a separate DELIM(+) token.
2838-
2839-
<li>
2840-
The INCLUDES and DASHMATCH tokens have been dropped.
2841-
They're not actually necessary
2842-
(the Selectors parser can handle them as two DELIM tokens just as well)
2843-
and it's confusing to have them show up in the Core Grammar
2844-
when the other types of attribute selector options don't.
2845-
28462835
<li>
28472836
The handling of some miscellanous 'special' tokens
28482837
(like an unmatched } token)
28492838
showing up in various places in the grammar
28502839
has been specified with some reasonable behavior shown by at least one browser.
28512840
Previously, stylesheets with those tokens in those places just didn't match the stylesheet grammar at all,
28522841
so their handling was totally undefined.
2842+
2843+
<li>
2844+
Quirks mode parsing differences are now officially recognized in the parser.
28532845
</ol>
28542846

28552847

0 commit comments

Comments
 (0)