2
2
3
3
< html lang =en >
4
4
< head >
5
- < meta charset =utf8 >
5
+ < meta charset =utf-8 >
6
+
6
7
< title > Selectors Level 3</ title >
7
8
8
- < link href ="https://www.w3.org/TR/2018/CR-css3-selectors-20180130/ "
9
+ < meta name ="viewport " content ="width=device-width, initial-scale=1, shrink-to-fit=no ">
10
+
11
+ < link href ="https://www.w3.org/TR/2018/CR-selectors-3-20180130/ "
9
12
rel =canonical >
10
- < meta content =" width=device-width " name = viewport > < !--
13
+ <!--
11
14
<link href="http://purl.org/dc/terms/" rel="schema.dcterms">
12
15
<link href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright" rel="dcterms.rights">
13
16
-->
22
25
< meta content ="Peter Linss " name =dcterms.creator >
23
26
< meta content ="John Williams " name =dcterms.creator >
24
27
< meta content =W3C name =dcterms.publisher >
25
- < meta content ="https://www.w3.org/TR/2018/CR-css3- selectors-20180130/ "
28
+ < meta content ="https://www.w3.org/TR/2018/CR-selectors-3 -20180130/ "
26
29
name =dcterms.identifier >
27
- < link href ="../ default.css " rel =stylesheet type ="text/css ">
30
+ < link href ="default.css " rel =stylesheet type ="text/css ">
28
31
< link href ="https://www.w3.org/StyleSheets/TR/2016/W3C-CR.css "
29
32
rel =stylesheet type ="text/css ">
30
33
< script defer =""
@@ -45,29 +48,27 @@ <h2 class="no-num no-toc">W3C Candidate Recommendation 30 January 2018</h2>
45
48
< dt > This version:
46
49
47
50
< dd >
48
- <!-- <a href="https://www.w3.org/TR/2018/CR-css3-selectors-20180130/">
49
- https://www.w3.org/TR/2018/REC-css3-selectors-20180130</a> -->
50
- < a href ="https://drafts.csswg.org/selectors3 ">
51
- https://drafts.csswg.org/selectors3</ a >
51
+ < a href ="https://www.w3.org/TR/2018/CR-selectors-3-20180130/ ">
52
+ https://www.w3.org/TR/2018/CR-selectors-3-20180130/</ a >
52
53
53
54
< dt > Latest version:
54
55
55
- < dd > < a href ="https://www.w3.org/TR/css3- selectors ">
56
- https://www.w3.org/TR/css3- selectors</ a >
56
+ < dd > < a href ="https://www.w3.org/TR/selectors-3/ ">
57
+ https://www.w3.org/TR/selectors-3/ </ a >
57
58
58
59
< dt > Previous version:
59
60
60
61
< dd > < a href ="http://www.w3.org/TR/2011/REC-css3-selectors-20110929/ ">
61
62
http://www.w3.org/TR/2011/REC-css3-selectors-20110929/</ a >
62
63
64
+
65
+ < dt > Latest version of Selectors</ dt >
66
+ < dd > < a href ="https://www.w3.org/TR/selectors/ "> https://www.w3.org/TR/selectors/</ a > </ dd >
67
+
68
+
63
69
< dt > Feedback:
64
70
65
- < dd > < a
66
- href ="mailto:www-style@w3.org?subject=%5Bselectors3%5D%20feedback "> www-style@w3.org</ a >
67
- with subject line “< kbd > [selectors3] < var > … message topic
68
- …</ var > </ kbd > ” (< a
69
- href ="http://lists.w3.org/Archives/Public/www-style/ "
70
- rel =discussion > archives</ a > )
71
+ < dd > File an < a href ="https://github.com/w3c/csswg-drafts/labels/selectors-3 "> issue on GitHub</ a >
71
72
72
73
< dt id =editors-list > Editors:
73
74
@@ -93,22 +94,7 @@ <h2 class="no-num no-toc">W3C Candidate Recommendation 30 January 2018</h2>
93
94
class =company > < a href ="http://www.quark.com/ "> Quark, Inc.</ a > </ span > )
94
95
</ dl >
95
96
<!--begin-copyright-->
96
- < p class =copyright > < a
97
- href ="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright "
98
- rel =license > Copyright</ a > © 2018 < a href ="http://www.w3.org/ "> < abbr
99
- title ="World Wide Web Consortium "> W3C</ abbr > </ a > < sup > ®</ sup > (< a
100
- href ="http://www.csail.mit.edu/ "> < abbr
101
- title ="Massachusetts Institute of Technology "> MIT</ abbr > </ a > , < a
102
- href ="http://www.ercim.eu/ "> < abbr
103
- title ="European Research Consortium for Informatics and Mathematics "> ERCIM</ abbr > </ a > ,
104
- < a href ="http://www.keio.ac.jp/ "> Keio</ a > , < a
105
- href ="http://ev.buaa.edu.cn/ "> Beihang</ a > ). W3C < a
106
- href ="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer "> liability</ a > ,
107
- < a
108
- href ="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks "> trademark</ a >
109
- and < a
110
- href ="http://www.w3.org/Consortium/Legal/copyright-documents "> document
111
- use</ a > rules apply.</ p >
97
+ < p class ="copyright "> < a href ="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright "> Copyright</ a > © 2018 < a href ="https://www.w3.org/ "> < abbr title ="World Wide Web Consortium "> W3C</ abbr > </ a > < sup > ®</ sup > (< a href ="https://www.csail.mit.edu/ "> < abbr title ="Massachusetts Institute of Technology "> MIT</ abbr > </ a > , < a href ="https://www.ercim.eu/ "> < abbr title ="European Research Consortium for Informatics and Mathematics "> ERCIM</ abbr > </ a > , < a href ="https://www.keio.ac.jp/ "> Keio</ a > , < a href ="http://ev.buaa.edu.cn/ "> Beihang</ a > ). W3C < a href ="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer "> liability</ a > , < a href ="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks "> trademark</ a > and < a href ="https://www.w3.org/Consortium/Legal/copyright-documents "> document use</ a > rules apply.</ p >
112
98
<!--end-copyright-->
113
99
< hr title ="Separator for header ">
114
100
</ div >
@@ -121,10 +107,10 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
121
107
optimized for use with HTML and XML, and are designed to be usable in
122
108
performance-critical code.
123
109
124
- < p > < acronym title ="Cascading Style Sheets "> CSS</ acronym > (Cascading Style
125
- Sheets) is a language for describing the rendering of < acronym
126
- title ="Hypertext Markup Language "> HTML</ acronym > and < acronym
127
- title ="Extensible Markup Language "> XML</ acronym > documents on screen, on
110
+ < p > < abbr title ="Cascading Style Sheets "> CSS</ abbr > (Cascading Style
111
+ Sheets) is a language for describing the rendering of < abbr
112
+ title ="Hypertext Markup Language "> HTML</ abbr > and < abbr
113
+ title ="Extensible Markup Language "> XML</ abbr > documents on screen, on
128
114
paper, in speech, etc. CSS uses Selectors for binding style properties to
129
115
elements in the document.
130
116
@@ -145,19 +131,31 @@ <h2 class="no-num no-toc" id=abstract>Abstract</h2>
145
131
146
132
< p > These expressions can also be used, for instance, to select a set of
147
133
elements, or a single element from a set of elements, by evaluating the
148
- expression across all the elements in a subtree. < acronym
149
- title ="Simple Tree Transformation Sheets "> STTS</ acronym > (Simple Tree
134
+ expression across all the elements in a subtree. < abbr
135
+ title ="Simple Tree Transformation Sheets "> STTS</ abbr > (Simple Tree
150
136
Transformation Sheets), a language for transforming XML trees, uses this
151
137
mechanism. < a href ="#ref-STTS3 "> [STTS3]<!--{{STTS3}}--> </ a >
152
138
153
139
< h2 class ="no-num no-toc " id =status > Status of this document</ h2 >
154
140
<!--begin-status-->
155
141
156
142
< p > < em > This section describes the status of this document at the time of
157
- its publication. Other documents may supersede this document. A list of
158
- current W3C publications and the latest revision of this technical report
159
- can be found in the < a href ="http://www.w3.org/TR/ "> W3C technical reports
160
- index at http://www.w3.org/TR/.</ a > </ em >
143
+ its publication. Other documents may supersede this document. A list
144
+ of current W3C publications and the latest revision of this technical
145
+ report can be found in the < a href ="https://www.w3.org/TR/ "> W3C
146
+ technical reports index</ a > at https://www.w3.org/TR/.</ em > </ p >
147
+
148
+ < p > This Candidate Recommendation is identical to the
149
+ < a href ="http://www.w3.org/TR/2011/REC-css3-selectors-20110929/ ">
150
+ 29 September 2011 W3C Recommendation</ a > except that the
151
+ < a href ="https://www.w3.org/Style/2011/REC-css3-selectors-20110929-errata.html "> errata</ a >
152
+ have been incorporated, as noted in the < a href ="#changes "> changes section</ a > .
153
+ One of these is a technical change; a
154
+ < a href ="http://test.csswg.org/harness/test/selectors-3_dev/single/selector-structural-pseudo-root/format/html5/ ">
155
+ test</ a > is available for that change, and is
156
+ < a href ="http://test.csswg.org/harness/details/selectors-3_dev/selector-structural-pseudo-root/ ">
157
+ passed by two or more implementations</ a > .
158
+ </ p >
161
159
162
160
< p > Publication as a Candidate Recommendation does not imply endorsement by
163
161
the W3C Membership. This is a draft document and may be updated, replaced
@@ -171,38 +169,39 @@ <h2 class="no-num no-toc" id=status>Status of this document</h2>
171
169
172
170
< p > A Candidate Recommendation is a document that has been widely reviewed
173
171
and is ready for implementation. W3C encourages everybody to implement
174
- this specification and return comments to the ( < a
175
- href =" http://lists.w3.org/Archives/Public/www-style/ " > archived </ a > ) public
176
- mailing list < a
177
- href ="mailto:www-style@ w3.org?Subject=%5Bcss3-selectors%5D%20PUT%20SUBJECT%20HERE " > www-style@w3.org </ a >
178
- (see < a href =" http://www.w3.org/Mail/Request " > instructions </ a > ). When
179
- sending e-mail, please put the text “css3-selectors” in the subject,
180
- preferably like this: “[ <!----> css3-selectors <!----> ] < em > …summary of
181
- comment… </ em > ”
172
+ this specification and return comments as < a href =" https://github.com/w3c/csswg-drafts/labels/selectors-3 " > GitHub issues </ a >
173
+ by 28 February 2018.
174
+ All issues and comments are < a
175
+ href ="https://lists. w3.org/Archives/Public/public-css-archive/ " > archived </ a > ,
176
+ and there is also a < a
177
+ href =" https://lists.w3.org/Archives/Public/www-style/ " > historical
178
+ archive </ a > .
179
+
182
180
183
181
< p > This document was produced by a group operating under the < a
184
- href ="http://www.w3.org/Consortium/Patent-Policy-20040205/ "> 5 February
185
- 2004 W3C Patent Policy</ a > . W3C maintains a < a
186
- href ="http://www.w3.org/2004/01/pp-impl/32061/status "
182
+ href ="https://www.w3.org/Consortium/Patent-Policy/ "> W3C Patent Policy</ a > . W3C maintains a < a
183
+ href ="https://www.w3.org/2004/01/pp-impl/32061/status "
187
184
rel =disclosure > public list of any patent disclosures</ a > made in
188
185
connection with the deliverables of the group; that page also includes
189
186
instructions for disclosing a patent. An individual who has actual
190
- knowledge of a patent which the individual believes contains < a
191
- href ="http ://www.w3.org/Consortium/Patent-Policy-20040205 /#def-essential "> Essential
192
- Claim(s)</ a > must disclose the information in accordance with < a
193
- href ="http ://www.w3.org/Consortium/Patent-Policy-20040205 /#sec-Disclosure "> section
194
- 6 of the W3C Patent Policy</ a > .
195
-
196
- < p > This document is governed by the < a
197
- href ="http ://www.w3.org/2015 /Process-20150901/ "
198
- id =" w3c_process_revision " > 1 September 2015 W3C Process Document</ a > .</ p >
187
+ knowledge of a patent which the individual believes contains
188
+ < a href ="https ://www.w3.org/Consortium/Patent-Policy/#def-essential "> Essential
189
+ Claim(s)</ a > must disclose the information in accordance
190
+ with < a href ="https ://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure "> section
191
+ 6 of the W3C Patent Policy</ a > . </ p >
192
+
193
+ < p > This document is governed by the < a id =" w3c_process_revision "
194
+ href ="https ://www.w3.org/2017 /Process-20170301/ " > 1 March 2017
195
+ W3C Process Document</ a > . </ p >
199
196
<!--end-status-->
200
197
201
198
< p > A separate < a
202
199
href ="https://test.csswg.org/harness/suite/selectors-3_dev/ "> test
203
200
suite</ a > and < a
204
201
href ="https://test.csswg.org/harness/results/selectors-3_dev/grouped/ ">
205
- implementation report</ a > is available. < nav id =toc >
202
+ implementation report</ a > is available.
203
+
204
+ < nav id =toc >
206
205
< h2 class ="no-num no-toc " id =contents > Table of contents</ h2 >
207
206
<!--begin-toc-->
208
207
< ul class =toc >
@@ -1621,13 +1620,13 @@ <h5 id=the-link-pseudo-classes-link-and-visited><span class=secno>6.6.1.1.
1621
1620
visited ones. Selectors provides the pseudo-classes < dfn
1622
1621
data-dfn-type =selector data-export =data-export id =sel-link > :link</ dfn > and
1623
1622
< dfn data-dfn-type =selector data-export =data-export
1624
- id =sel-link > :visited</ dfn > to distinguish them:
1623
+ id =sel-visited > :visited</ dfn > to distinguish them:
1625
1624
1626
1625
< ul >
1627
1626
< li > The < a href ="#sel-link "> < code > :link</ code > </ a > pseudo-class applies to
1628
1627
links that have not yet been visited.
1629
1628
1630
- < li > The < a href ="#sel-link "> < code > :visited</ code > </ a > pseudo-class applies
1629
+ < li > The < a href ="#sel-visited "> < code > :visited</ code > </ a > pseudo-class applies
1631
1630
once the link has been visited by the user.
1632
1631
</ ul >
1633
1632
@@ -1801,7 +1800,7 @@ <h4 id=lang-pseudo><span class=secno>6.6.3. </span>The language
1801
1800
href ="#ref-BCP47 "> [BCP47]<!--{{BCP47}}--> </ a > or its successor, and by
1802
1801
means of "xml:lang" attributes in the case of XML-based documents < a
1803
1802
href ="#ref-XML10 "> [XML10]<!--{{XML10}}--> </ a > . See < a
1804
- href ="http://www.w3.org/International/questions/qa-lang-2or3.html "> "FAQ:
1803
+ href ="http://www.w3.org/International/questions/qa-lang-2or3.en. html "> "FAQ:
1805
1804
Two-letter or three-letter language codes."</ a >
1806
1805
1807
1806
< div class =example >
@@ -3392,7 +3391,7 @@ <h3 id=normative-references><span class=secno>15.1. </span>Normative
3392
3391
3393
3392
< dl class =bibliography > <!---->
3394
3393
3395
- < dt id =CSS21 > [CSS21]
3394
+ < dt id =ref- CSS21> [CSS21]
3396
3395
3397
3396
< dd > Bert Bos; et al. < a
3398
3397
href ="http://www.w3.org/TR/2011/REC-CSS2-20110607 "> < cite > Cascading Style
@@ -3402,7 +3401,7 @@ <h3 id=normative-references><span class=secno>15.1. </span>Normative
3402
3401
</ dd >
3403
3402
<!---->
3404
3403
3405
- < dt id =CSS3NAMESPACE > [CSS3NAMESPACE]
3404
+ < dt id =ref- CSS3NAMESPACE> [CSS3NAMESPACE]
3406
3405
3407
3406
< dd > Elika J. Etemad. < a
3408
3407
href ="http://www.w3.org/TR/2014/REC-css-namespaces-3-20140320/ "> < cite > CSS
@@ -3412,13 +3411,13 @@ <h3 id=normative-references><span class=secno>15.1. </span>Normative
3412
3411
</ dd >
3413
3412
<!---->
3414
3413
3415
- < dt id =FLEX > [FLEX]
3414
+ < dt id =ref- FLEX> [FLEX]
3416
3415
3417
3416
< dd > < cite > Flex: The Lexical Scanner Generator.</ cite > Version 2.3.7, ISBN
3418
3417
1882114213</ dd >
3419
3418
<!---->
3420
3419
3421
- < dt id =UNICODE > [UNICODE]
3420
+ < dt id =ref- UNICODE> [UNICODE]
3422
3421
3423
3422
< dd > The Unicode Consortium. < a
3424
3423
href ="http://www.unicode.org/standard/versions/enumeratedversions.html "> < cite > The
@@ -3430,7 +3429,7 @@ <h3 id=normative-references><span class=secno>15.1. </span>Normative
3430
3429
</ dd >
3431
3430
<!---->
3432
3431
3433
- < dt id =YACC > [YACC]
3432
+ < dt id =ref- YACC> [YACC]
3434
3433
3435
3434
< dd > S. C. Johnson. < cite > YACC - Yet another compiler compiler.</ cite >
3436
3435
Murray Hill. 1975. Technical Report.</ dd >
@@ -3445,7 +3444,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3445
3444
3446
3445
< dl class =bibliography > <!---->
3447
3446
3448
- < dt id =BCP47 > [BCP47]
3447
+ < dt id =ref- BCP47> [BCP47]
3449
3448
3450
3449
< dd > A. Phillips; M. Davis. < a
3451
3450
href ="ftp://ftp.rfc-editor.org/in-notes/bcp/bcp47.txt "> < cite > Tags for
@@ -3455,7 +3454,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3455
3454
</ dd >
3456
3455
<!---->
3457
3456
3458
- < dt id =CSS1 > [CSS1]
3457
+ < dt id =ref- CSS1> [CSS1]
3459
3458
3460
3459
< dd > Håkon Wium Lie; Bert Bos. < a
3461
3460
href ="http://www.w3.org/TR/2008/REC-CSS1-20080411 "> < cite > Cascading Style
@@ -3465,7 +3464,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3465
3464
</ dd >
3466
3465
<!---->
3467
3466
3468
- < dt id =DOM-LEVEL-3-CORE > [DOM-LEVEL-3-CORE]
3467
+ < dt id =ref- DOM-LEVEL-3-CORE> [DOM-LEVEL-3-CORE]
3469
3468
3470
3469
< dd > Gavin Nicol; et al. < a
3471
3470
href ="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407 "> < cite > Document
@@ -3475,7 +3474,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3475
3474
</ dd >
3476
3475
<!---->
3477
3476
3478
- < dt id =HTML401 > [HTML401]
3477
+ < dt id =ref- HTML401> [HTML401]
3479
3478
3480
3479
< dd > Dave Raggett; Arnaud Le Hors; Ian Jacobs. < a
3481
3480
href ="http://www.w3.org/TR/1999/REC-html401-19991224 "> < cite > HTML 4.01
@@ -3484,7 +3483,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3484
3483
</ dd >
3485
3484
<!---->
3486
3485
3487
- < dt id =HTML5 > [HTML5]
3486
+ < dt id =ref- HTML5> [HTML5]
3488
3487
3489
3488
< dd > Ian Hickson; et al. < a
3490
3489
href ="http://www.w3.org/TR/2014/REC-html5-20141028/ "> < cite > HTML5.</ cite > </ a >
@@ -3493,7 +3492,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3493
3492
</ dd >
3494
3493
<!---->
3495
3494
3496
- < dt id =MATHML3 > [MATHML3]
3495
+ < dt id =ref- MATHML3> [MATHML3]
3497
3496
3498
3497
< dd > David Carlisle; Patrick Ion; Robert Miner. < a
3499
3498
href ="http://www.w3.org/TR/2014/REC-MathML3-20140410/ "> < cite > Mathematical
@@ -3503,7 +3502,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3503
3502
</ dd >
3504
3503
<!---->
3505
3504
3506
- < dt id =STTS3 > [STTS3]
3505
+ < dt id =ref- STTS3> [STTS3]
3507
3506
3508
3507
< dd > Daniel Glazman. < a href ="http://www.w3.org/TR/NOTE-STTS3 "> < cite > Simple
3509
3508
Tree Transformation Sheets 3.</ cite > </ a > Electricité de France. 11
@@ -3512,7 +3511,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3512
3511
</ dd >
3513
3512
<!---->
3514
3513
3515
- < dt id =SVG11 > [SVG11]
3514
+ < dt id =ref- SVG11> [SVG11]
3516
3515
3517
3516
< dd > Erik Dahlström; et al. < a
3518
3517
href ="http://www.w3.org/TR/2011/REC-SVG11-20110816/ "> < cite > Scalable
@@ -3522,7 +3521,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3522
3521
</ dd >
3523
3522
<!---->
3524
3523
3525
- < dt id =UAX29 > [UAX29]
3524
+ < dt id =ref- UAX29> [UAX29]
3526
3525
3527
3526
< dd > Mark Davis. < a
3528
3527
href ="http://www.unicode.org/reports/tr29/ "> < cite > Unicode Text
@@ -3532,7 +3531,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3532
3531
</ dd >
3533
3532
<!---->
3534
3533
3535
- < dt id =XML-NAMES > [XML-NAMES]
3534
+ < dt id =ref- XML-NAMES> [XML-NAMES]
3536
3535
3537
3536
< dd > Tim Bray; et al. < a
3538
3537
href ="http://www.w3.org/TR/2009/REC-xml-names-20091208/ "> < cite > Namespaces
@@ -3542,7 +3541,7 @@ <h3 id=informative-references><span class=secno>15.2. </span>Informative
3542
3541
</ dd >
3543
3542
<!---->
3544
3543
3545
- < dt id =XML10 > [XML10]
3544
+ < dt id =ref- XML10> [XML10]
3546
3545
3547
3546
< dd > C. M. Sperberg-McQueen; et al. < a
3548
3547
href ="http://www.w3.org/TR/2008/REC-xml-20081126/ "> < cite > Extensible
@@ -3567,5 +3566,8 @@ <h3 id=changes><span class=secno>15.3. </span>Changes</h3>
3567
3566
href ="http://test.csswg.org/harness/test/selectors-3_dev/single/selector-structural-pseudo-root/format/html5/ "> testcase</ a > .
3568
3567
</ ul >
3569
3568
3569
+ < p role ="navigation " id ="back-to-top "> < a href ="#toc "> < abbr title ="Back to top "> ↑</ abbr > </ a > </ p >
3570
+
3571
+
3570
3572
< script src ="//www.w3.org/scripts/TR/2016/fixup.js "
3571
3573
type ="application/javascript "> </ script >
0 commit comments