@@ -123,25 +123,24 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
123123 < ul class =toc >
124124 < li > < a href ="#context "> < span class =secno > 1. </ span > Introduction</ a >
125125 < ul class =toc >
126- < li > < a href ="#context "> < span class =secno > 1.1. </ span > Background</ a >
127-
128- < li > < a href ="#placement "> < span class =secno > 1.2. </ span > Module
126+ < li > < a href ="#placement "> < span class =secno > 1.1. </ span > Module
129127 Interactions</ a >
130128
131- < li > < a href ="#conventions "> < span class =secno > 1.3 . </ span > Document
129+ < li > < a href ="#conventions "> < span class =secno > 1.2 . </ span > Document
132130 Conventions</ a >
133131 </ ul >
134132
135133 < li > < a href ="#overview "> < span class =secno > 2. </ span > Selectors
136134 Overview</ a >
137135
138- < li > < a href ="#syntax "> < span class =secno > 3. </ span > Selector Syntax</ a >
136+ < li > < a href ="#syntax "> < span class =secno > 3. </ span > Selector Syntax and
137+ Structure</ a >
139138 < ul class =toc >
140139 < li > < a href ="#structure "> < span class =secno > 3.1. </ span > Structure and
141- Terminology </ a >
140+ Terminology</ a >
142141
143142 < li > < a href ="#subject "> < span class =secno > 3.2. </ span > Subject of a
144- Selector </ a >
143+ Selector</ a >
145144
146145 < li > < a href ="#case-sensitive "> < span class =secno > 3.3. </ span > Characters
147146 and case sensitivity</ a >
@@ -155,8 +154,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
155154 < li > < a href ="#logical-combination "> < span class =secno > 4. </ span > Logical
156155 Combinations</ a >
157156 < ul class =toc >
158- < li > < a href ="#grouping "> < span class =secno > 4.1. </ span > Selector Lists
159- </ a >
157+ < li > < a href ="#grouping "> < span class =secno > 4.1. </ span > Selector
158+ Lists </ a >
160159
161160 < li > < a href ="#matches "> < span class =secno > 4.2. </ span > The Matches-Any
162161 Pseudo-class: ‘< code class =css > :matches()</ code > ’</ a >
@@ -265,7 +264,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
265264 < li > < a href ="#nth-match "> < span class =secno > 11.6. </ span > :nth-match()
266265 pseudo-class</ a >
267266
268- < li > < a href ="#nth-match "> < span class =secno > 11.7. </ span >
267+ < li > < a href ="#nth-last- match "> < span class =secno > 11.7. </ span >
269268 :nth-last-match() pseudo-class</ a >
270269
271270 < li > < a href ="#first-child-pseudo "> < span class =secno > 11.8. </ span >
@@ -312,8 +311,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
312311 < li > < a href ="#specificity "> < span class =secno > 13. </ span > Calculating a
313312 selector's specificity</ a >
314313
315- < li > < a href ="#grammar "> < span class =secno > 14. </ span > The grammar of
316- Selectors </ a >
314+ < li > < a href ="#formal-syntax "> < span class =secno > 14. </ span > Formal
315+ Syntax </ a >
317316 < ul class =toc >
318317 < li > < a href ="#grammar "> < span class =secno > 14.1. </ span > Grammar</ a >
319318
@@ -350,8 +349,6 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
350349
351350 < h2 id =context > < span class =secno > 1. </ span > Introduction</ h2 >
352351
353- < h3 id =context > < span class =secno > 1.1. </ span > Background</ h3 >
354-
355352 < p > < em > This section is not normative.</ em >
356353
357354 < p > Selectors define the following function:
@@ -375,7 +372,7 @@ <h3 id=context><span class=secno>1.1. </span>Background</h3>
375372 href ="http://www.w3.org/TR/css3-selectors/ "> Selectors Level 3</ a >
376373 specifications, respectively.
377374
378- < h3 id =placement > < span class =secno > 1.2 . </ span > Module Interactions</ h3 >
375+ < h3 id =placement > < span class =secno > 1.1 . </ span > Module Interactions</ h3 >
379376
380377 < p > This module replaces the definitions for, and extends the set of
381378 selectors (aside from pseudo-element selectors) defined for CSS in
@@ -387,7 +384,7 @@ <h3 id=placement><span class=secno>1.2. </span>Module Interactions</h3>
387384 described here, but they are defined in a separate Pseudo-Element
388385 Selectors Level 4 module.
389386
390- < h3 id =conventions > < span class =secno > 1.3 . </ span > Document Conventions</ h3 >
387+ < h3 id =conventions > < span class =secno > 1.2 . </ span > Document Conventions</ h3 >
391388
392389 < p > Conformance requirements are expressed with a combination of descriptive
393390 assertions and RFC 2119 terminology. The key words “MUST”, “MUST
@@ -797,7 +794,7 @@ <h2 id=overview><span class=secno>2. </span> Selectors Overview</h2>
797794 < p > The meaning of each selector is derived from the table above by
798795 prepending "matches" to the contents of each cell in the "Meaning" column.
799796
800- < h2 id =syntax > < span class =secno > 3. </ span > Selector Syntax</ h2 >
797+ < h2 id =syntax > < span class =secno > 3. </ span > Selector Syntax and Structure </ h2 >
801798
802799 < h3 id =structure > < span class =secno > 3.1. </ span > Structure and Terminology</ h3 >
803800
@@ -1801,9 +1798,10 @@ <h3 id=dir-pseudo><span class=secno>9.1. </span> The directionality
18011798 determined by the document language. For example, in HTML < a
18021799 href ="#HTML401 " rel =biblioentry > [HTML401]<!--{{HTML401}}--> </ a > , the
18031800 directionality of an element is determined by the < code > dir</ code >
1804- attribute. The < code > :dir()< code > pseudo-class does not select based on
1805- stylistic states—for example, the CSS 'direction' property does not
1806- affect whether it matches. </ code > </ code >
1801+ attribute. The < code > :dir()</ code > pseudo-class does not select based on
1802+ stylistic states—for example, the CSS ‘< code
1803+ class =property > direction</ code > ’ property does not affect whether it
1804+ matches.
18071805
18081806 < p > The pseudo-class < code > :dir(ltr)</ code > represents an element that has a
18091807 directionality of left-to-right (< code > ltr</ code > ). The pseudo-class
@@ -1940,9 +1938,6 @@ <h3 id=checked><span class=secno>10.2. </span> The :checked pseudo-class</h3>
19401938 pseudo-class:
19411939
19421940 < pre > :not(:checked)</ pre >
1943-
1944- < pre >
1945- </ pre >
19461941 </ div >
19471942
19481943 < h3 id =indeterminate > < span class =secno > 10.3. </ span > The :indeterminate
@@ -1951,8 +1946,8 @@ <h3 id=indeterminate><span class=secno>10.3. </span> The :indeterminate
19511946 < p > Radio and checkbox elements can be toggled between checked and unchecked
19521947 states, but are sometimes in an indeterminate state, neither checked nor
19531948 unchecked. The < code > :indeterminate</ code > pseudo-class applies to such
1954- elements. Like the < code > :checked< code > pseudo-class, it applies to all
1955- media.</ code > </ code >
1949+ elements. Like the < code > :checked</ code > pseudo-class, it applies to all
1950+ media.
19561951
19571952 < p > Components of a radio-group initialized with no pre-selected choice are
19581953 an example of :indeterminate state.
@@ -2200,7 +2195,7 @@ <h3 id=nth-match><span class=secno>11.6. </span> :nth-match() pseudo-class</h3>
22002195 class =css > < code > odd</ code > </ code > ’ keywords.
22012196 <!-- define <selector>. Split an+b into a similar <notation> -->
22022197
2203- < h3 id =nth-match > < span class =secno > 11.7. </ span > :nth-last-match()
2198+ < h3 id =nth-last- match > < span class =secno > 11.7. </ span > :nth-last-match()
22042199 pseudo-class</ h3 >
22052200
22062201 < p > < code > :nth-match(< a href ="#selector "> < var > selector</ var > </ a > ,
@@ -2549,7 +2544,7 @@ <h2 id=specificity><span class=secno>13. </span> Calculating a selector's
25492544 specified in an HTML < code > style</ code > attribute is described in CSS 2.1.
25502545 < a href ="#CSS21 " rel =biblioentry > [CSS21]<!--{{!CSS21}}--> </ a > .
25512546
2552- < h2 id =grammar > < span class =secno > 14. </ span > The grammar of Selectors </ h2 >
2547+ < h2 id =formal-syntax > < span class =secno > 14. </ span > Formal Syntax </ h2 >
25532548
25542549 < h3 id =grammar > < span class =secno > 14.1. </ span > Grammar</ h3 >
25552550
0 commit comments