-
Notifications
You must be signed in to change notification settings - Fork 710
/
Copy pathselector.html
259 lines (158 loc) · 11.3 KB
/
selector.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01//EN'>
<html lang="en">
<head>
<title>Selectors</title>
<link rel="stylesheet" href="style/default.css" type="text/css">
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/W3C-ED.css" type="text/css">
<link rel="prev" href="syndata.html">
<link rel="next" href="cascade.html">
<link rel="contents" href="Overview.html#minitoc">
<link rel="CSS-properties" href="propidx.html" title="properties">
<link rel="index" href="indexlist.html" title="index">
<link rel="first" href="Overview.html">
<script type="text/javascript" src="https://www.w3.org/scripts/TR/2016/fixup.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
</head>
<body>
<div class="navbar">
<p><a href="syndata.html">previous</a>
<a href="cascade.html">next</a>
<a href="Overview.html#minitoc">contents</a>
<a href="propidx.html">properties</a>
<a href="indexlist.html">index</a>
</div>
<hr class="navbar">
<h1 id="q0">5 Selectors</h1>
<div id="toc" class="subtoc">
<p><strong>Contents</strong>
<ul class="toc">
<li><a href="selector.html#pattern-matching" class="tocxref">5.1 Pattern matching</a>
<li><a href="selector.html#selector-syntax" class="tocxref">5.2 Selector syntax</a>
<ul class="toc">
<li><a href="selector.html#grouping" class="tocxref">5.2.1 Grouping</a>
</ul>
<li><a href="selector.html#universal-selector" class="tocxref">5.3 Universal selector</a>
<li><a href="selector.html#type-selectors" class="tocxref">5.4 Type selectors</a>
<li><a href="selector.html#descendant-selectors" class="tocxref">5.5 Descendant selectors</a>
<li><a href="selector.html#child-selectors" class="tocxref">5.6 Child selectors</a>
<li><a href="selector.html#adjacent-selectors" class="tocxref">5.7 Adjacent sibling selectors</a>
<li><a href="selector.html#attribute-selectors" class="tocxref">5.8 Attribute selectors</a>
<ul class="toc">
<li><a href="selector.html#matching-attrs" class="tocxref">5.8.1 Matching attributes and attribute values</a>
<li><a href="selector.html#default-attrs" class="tocxref">5.8.2 Default attribute values in DTDs</a>
<li><a href="selector.html#class-html" class="tocxref">5.8.3 Class selectors</a>
</ul>
<li><a href="selector.html#id-selectors" class="tocxref">5.9 ID selectors</a>
<li><a href="selector.html#pseudo-elements" class="tocxref">5.10 Pseudo-elements and pseudo-classes</a>
<li><a href="selector.html#pseudo-class-selectors" class="tocxref">5.11 Pseudo-classes</a>
<ul class="toc">
<li><a href="selector.html#first-child" class="tocxref">5.11.1 :first-child pseudo-class</a>
<li><a href="selector.html#link-pseudo-classes" class="tocxref">5.11.2 The link pseudo-classes: <span class="index-def" title="pseudo-classes:::link|:link|link (pseudo-class)">:link</span> and <span class="index-def" title="pseudo-classes:::visited|:visited|visited (pseudo-class)">:visited</span></a>
<li><a href="selector.html#dynamic-pseudo-classes" class="tocxref">5.11.3 The dynamic pseudo-classes: <span class="index-def" title="pseudo-classes:::hover|:hover|hover (pseudo-class)">:hover</span>, <span class="index-def" title="pseudo-classes:::active|:active|active (pseudo-class)">:active</span>, and <span class="index-def" title="pseudo-classes:::focus|:focus|focus (pseudo-class)">:focus</span></a>
<li><a href="selector.html#lang" class="tocxref">5.11.4 The language pseudo-class: <span class="index-def" title="pseudo-classes:::lang|:lang|lang (pseudo-class)">:lang</span></a>
</ul>
<li><a href="selector.html#pseudo-element-selectors" class="tocxref">5.12 Pseudo-elements</a>
<ul class="toc">
<li><a href="selector.html#first-line-pseudo" class="tocxref">5.12.1 The <span class="index-def" title="pseudo-elements:::first-line|:first-line|first-line">:first-line</span> pseudo-element</a>
<li><a href="selector.html#first-letter" class="tocxref">5.12.2 The <span class="index-def" title="pseudo-elements:::first-letter|:first-letter|first-letter">:first-letter</span> pseudo-element</a>
<li><a href="selector.html#before-and-after" class="tocxref">5.12.3 The <span class="index-def" title="pseudo-elements:::before|:before">:before</span> and <span class="index-def" title="pseudo-elements:::after|:after">:after</span> pseudo-elements</a>
</ul>
</ul>
</div>
<h2>5.1 <a name="pattern-matching">Pattern matching</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.2 <a name="selector-syntax">Selector syntax</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.2.1 <a name="grouping">Grouping</a></h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.3 <a name="universal-selector">Universal selector</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.4 <a name="type-selectors">Type selectors</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.5 <a name="descendant-selectors">Descendant selectors</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.6 <a name="child-selectors">Child selectors</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.7 <a name="adjacent-selectors">Adjacent sibling selectors</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.8 <a name="attribute-selectors">Attribute selectors</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.8.1 <a name="matching-attrs">Matching attributes and attribute values</a></h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<H3>5.8.2 <a name="default-attrs">Default attribute values in DTDs</a></H3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.8.3 <a name="class-html">Class selectors</a></h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.9 <a name="id-selectors">ID selectors</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.10 <a name="pseudo-elements">Pseudo-elements</a> and <a
name="pseudo-classes">pseudo-classes</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.11 <a name="pseudo-class-selectors">Pseudo-classes</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.11.1 <a name="first-child">:first-child</a> pseudo-class</h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.11.2 <a name="link-pseudo-classes">The link pseudo-classes</a>: <span
class="index-def" title="pseudo-classes:::link|:link|link
(pseudo-class)" id="x0">:link</span> and <span class="index-def"
title="pseudo-classes:::visited|:visited|visited
(pseudo-class)" id="x3">:visited</span></h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.11.3 <a name="dynamic-pseudo-classes">The dynamic pseudo-classes:</a>
<span class="index-def" title="pseudo-classes:::hover|:hover|hover
(pseudo-class)" id="x6">:hover</span>, <span class="index-def"
title="pseudo-classes:::active|:active|active
(pseudo-class)" id="x9">:active</span>, and <span class="index-def"
title="pseudo-classes:::focus|:focus|focus
(pseudo-class)" id="x12">:focus</span></h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.11.4 <a name="lang">The language pseudo-class:</a> <span
class="index-def" title="pseudo-classes:::lang|:lang|lang
(pseudo-class)" id="x15">:lang</span></h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h2>5.12 <a name="pseudo-element-selectors">Pseudo-elements</a></h2>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.12.1 The <span class="index-def"
title="pseudo-elements:::first-line|:first-line|first-line"><a
name="first-line-pseudo">:first-line</a></span> pseudo-element</h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.12.2 <a name="first-letter">The</a> <span class="index-def" title="pseudo-elements:::first-letter|:first-letter|first-letter" id="x21">:first-letter</span> pseudo-element</h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<h3>5.12.3 <a name="before-and-after">The</a> <span class="index-def"
title="pseudo-elements:::before|:before" id="x24">:before</span> and <span
class="index-def" title="pseudo-elements:::after|:after" id="x26">:after</span>
pseudo-elements</h3>
<p>This section has been replaced by <cite>Selectors Level 3</cite>
<a href="refs.html#ref-CSS3SEL" rel="biblioentry" class="noxref"><span class="normref">[CSS3SEL]</span></a>.
<hr class="navbar">
<div class="navbar">
<p><a href="syndata.html">previous</a>
<a href="cascade.html">next</a>
<a href="Overview.html#minitoc">contents</a>
<a href="propidx.html">properties</a>
<a href="indexlist.html">index</a>
</div>
</body>
</html>