forked from termi/CSS_selector_engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathselectors.large.css
273 lines (273 loc) · 7.82 KB
/
selectors.large.css
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
.note
#title
h1#title
div #title
div.example
ul .tocline2
.title
.toc
.toc .tocline2
.tocline2, .tocline3, .tocline4
div.example, div.note
body
div
body div
div p
div > p
div + p
div ~ p
div[class^=exa][class$=mple]
div p a
div, p, a
ul.toc li.tocline2
ul.toc > li.tocline2
h1#title + div > p
h1[id]:contains(Selectors)
a[href][lang][class]
div[class]
div[class=example]
div[class^=exa]
div[class$=mple]
div[class*=e]
div[class|=dialog]
div[class!=made_up]
div[class~=example]
div:not(.example)
p:contains(selectors)
p:nth-child(even)
p:nth-child(2n)
p:nth-child(odd)
p:nth-child(2n+1)
p:nth-child(n)
p:only-child
p:last-child
p:first-child
*
A
[foo]
[foo="bar"]
[foo~="bar"]
[hreflang|="en"]
[foo^="bar"]
[foo$="bar"]
[foo*="bar"]
:first-child
:root
:nth-child(n)
:nth-last-child(n)
:nth-of-type(n)
:nth-last-of-type(n)
:last-child
:first-of-type
:last-of-type
:only-child
:only-of-type
:empty
:link
:visited
:active
:hover
:focus
:lang(fr)
:target
:disabled
:enabled
:checked
.warning
#myid
#myid
* B
* > B
* + B
* ~ B
:not(B)
:not(*)
:not([foo])
:not([foo="bar"])
:not([foo~="bar"])
:not([hreflang|="en"])
:not([foo^="bar"])
:not([foo$="bar"])
:not([foo*="bar"])
:not(:first-child)
:not(:root)
:not(:nth-child(n))
:not(:nth-last-child(n))
:not(:nth-of-type(n))
:not(:nth-last-of-type(n))
:not(:last-child)
:not(:first-of-type)
:not(:last-of-type)
:not(:only-child)
:not(:only-of-type)
:not(:empty)
:not(:link)
:not(:visited)
:not(:active)
:not(:hover)
:not(:focus)
:not(:lang(fr))
:not(:target)
:not(:disabled)
:not(:enabled)
:not(:checked)
:not(.warning)
:not(#myid)
li,p
address
* ul, p *.t1
* ul, p *.t1
#foo p
p p[title]
address address[title="foo"] span[title="a"]
p p[class~="b"] address address[title~="foo"] span[class~="b"]
p [title~="hello world"]
p p[lang|="en"] address address[lang="fi"] span[lang|="fr"]
p p[title^="foo"]
p p[title$="bar"]
p p[title*="bar"]
li .t1 li.t2 .t3
p p.t1 p.t2
div div.teST div.te div.st div.te.st
p .t1.fail .fail.t1 .t2.fail .fail.t2
p p.t1.t2 div div.t1 address address.t5.t5
p .t1:not(.t2) :not(.t2).t1 .t2:not(.t1) :not(.t1).t2
p p:not(.t1):not(.t2) div div:not(.t1) address address:not(.t5):not(.t5)
li #t1 li#t2 li#t3 #t4
p #test#fail #fail#test #fail div #pass#pass
.warning div #Aone#Atwo, #Aone#Athree, #Atwo#Athree p #Bone#Btwo, #Bone#Bthree, #Btwo#Bthree #Cone#Ctwo, #Cone#Cthree, #Ctwo#Cthree #Done#Dtwo, #Done#Dthree, #Dtwo#Dthree
p.test a p.test *:link
p.test a p.test *:visited
p:hover a:hover
tr:hover td:hover
table
p
.a a:hover
.b a:hover .b a:link
.c :link .c :visited:hover
div:hover > p:first-child
:link, :visited :link:hover span
a:active
button:active
a:focus
p:target
p p:target
:root :target
ul > li li:lang(en-GB)
button input button:enabled input:enabled
button input button:disabled input:disabled
input, span input:checked, input:checked + span
html *:root
:root:first-child :root:last-child :root:only-child :root:nth-child(1) :root:nth-child(n) :root:nth-last-child(1) :root:nth-last-child(n) :root:first-of-type :root:last-of-type :root:only-of-type :root:nth-of-type(1) :root:nth-of-type(n) :root:nth-last-of-type(1) :root:nth-last-of-type(n) p
* html * :root p
.red ul > li:nth-child(odd) ol > li:nth-child(even) table.t1 tr:nth-child(-n+4) table.t2 td:nth-child(3n+1)
.green ul > li:nth-child(odd) ol > li:nth-child(even) table.t1 tr:nth-child(-n+4) table.t2 td:nth-child(3n+1)
.red ul > li:nth-last-child(odd) ol > li:nth-last-child(even) table.t1 tr:nth-last-child(-n+4) table.t2 td:nth-last-child(3n+1)
.green ul > li:nth-last-child(odd) ol > li:nth-last-child(even) table.t1 tr:nth-last-child(-n+4) table.t2 td:nth-last-child(3n+1)
.red p:nth-of-type(3) dl > :nth-of-type(3n+1)
.red p:nth-last-of-type(3) dl > :nth-last-of-type(3n+1)
.red .t1 td:first-child p > *:first-child
.red .t1 td:last-child p > *:last-child
.red address address:first-of-type
.red address address:last-of-type
.red p:only-child div.testText > div > p
.red .t1 :only-of-type
.white .red div.t1 p
.white .green div.t1 p
.white .red div > p.test
.white .green div > p.test
.fail > div .control
#fail > div p
.red div.stub > p + p
.green .white div.stub > p + p
.fail + div .control
.red div.stub > p ~ p
.green div.stub > p ~ p
div.stub > * div.stub *:not(.foo)
div.stub > * div.stub *:not(#foo)
div.stub > * div.stub *:not(:link)
div.stub > * div.stub *:not(:visited)
div.stub * div.stub > * > *:not(:hover)
div.stub * div.stub > * > *:not(:active)
a:not(:focus) a
p p:not(:target)
p p:not(:target)
div.stub * div.stub *:not(:lang(fr))
button input button:not(:enabled) input:not(:enabled)
button input button:not(:disabled) input:not(:disabled)
input, span input:not(:checked), input:not(:checked) + span
p:not(:root) div *
html:not(:root), test:not(:root) p
.red ul > li:not(:nth-child(odd)) ol > li:not(:nth-child(even)) table.t1 tr:not(:nth-child(-n+4)) table.t2 td:not(:nth-child(3n+1)) table.t1 td, table.t2 td
.green ul > li:not(:nth-child(odd)) ol > li:not(:nth-child(even)) table.t1 tr:not(:nth-child(-n+4)) table.t2 td:not(:nth-child(3n+1)) table.t1 td, table.t2 td
.red ul > li:not(:nth-last-child(odd)) ol > li:not(:nth-last-child(even)) table.t1 tr:not(:nth-last-child(-n+4)) table.t2 td:not(:nth-last-child(3n+1)) table.t1 td, table.t2 td
.green ul > li:not(:nth-last-child(odd)) ol > li:not(:nth-last-child(even)) table.t1 tr:not(:nth-last-child(-n+4)) table.t2 td:not(:nth-last-child(3n+1)) table.t1 td, table.t2 td
.red p:not(:nth-of-type(3)) dl > *:not(:nth-of-type(3n+1))
.green p:not(:nth-of-type(3)) dl > *:not(:nth-of-type(3n+1))
.red p:not(:nth-last-of-type(3)) dl > *:not(:nth-last-of-type(3n+1))
.green p:not(:nth-last-of-type(3)) dl > *:not(:nth-last-of-type(3n+1))
.red .t1 td:not(:first-child) p > *:not(:first-child) table.t1 td
.green .t1 td:not(:first-child) p > *:not(:first-child) table.t1 td
.red .t1 td:not(:last-child) p > *:not(:last-child) table.t1 td
.green .t1 td:not(:last-child) p > *:not(:last-child) table.t1 td
.red address address:not(:first-of-type)
.red address address:not(:last-of-type)
.red p:not(:only-child) div.testText > div > p
.green p:not(:only-child) div.testText > div > p
.red .t1 *:not(:only-of-type)
.green .t1 *:not(:only-of-type)
p p:not(:not(p))
p blockquote > div p
p blockquote + div ~ p
p blockquote + div ~ p
p blockquote + div p
p blockquote + div p
p blockquote div > p
p blockquote ~ div + p
p blockquote ~ div + p
div :not(:enabled):not(:disabled) p
line [type~=odd] line:nth-of-type(odd) [hidden]
line [type~=odd] line:nth-of-type(odd) [hidden]
line [type~=match] line:nth-child(3n-1) [hidden]
line [type~=match] line:nth-child(3n-1) [hidden]
line [type~=match] line:nth-last-of-type(3n-1) [hidden]
line [type~=match] line:nth-last-of-type(3n-1) [hidden]
p p:empty
address:empty address .text
address:empty address .text
address:empty address .text
address address:empty .text
address address:empty .text
address address:empty .text
p p,
p .5cm
p .\5cm
p .two\ words
p .one.word
.one\.word p
p foo & address, p
foo & address, p p
foo & address, p p
p [*=test]
p p:subject
p p * p > * p + * p ~ *
td > div td > div > span
.test strong
p .fail
p .13
p .\13
p .\31 \33
div p::first-child
.cs .cs P .cs .a .cs .span1 span .cs .span2 .cs .span2 SPAN .cs .span2 span .ci .ci P .ci .a .ci .span1 span .ci .span2 SPAN
p foo\:bar
p ..test .foo..quux .bar.
#test #test:not(:empty)
#test1 #test1:empty #test2 #test2:empty
#test #stub ~ div div + div > div
[test] stub ~ [|attribute^=start]:not([|attribute~=mid])[|attribute*=dle][|attribute$=end] ~ t
#two:first-child #three:last-child
input, span input:indeterminate, input:indeterminate + span
input, span input:checked, input:checked + span
input, span input:not(:checked), input:not(:checked) + span
p[example=publicclass]
p[example="public"]