forked from PrismJS/prism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
selector_feature.test
76 lines (61 loc) · 1.35 KB
/
selector_feature.test
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
foo:after {
foo::first-letter {
foo.bar {
foo#bar {
#foo > .bar:hover:after {
span,
div {
div > p,
.css-li ~ .css-li,
.previous-selector + .selector,
.selected || td {
----------------------------------------------------
[
["selector", [
"foo",
["pseudo-element", ":after"]
]], ["punctuation", "{"],
["selector", [
"foo",
["pseudo-element", "::first-letter"]
]], ["punctuation", "{"],
["selector", [
"foo",
["class", ".bar"]
]], ["punctuation", "{"],
["selector", [
"foo",
["id", "#bar"]
]], ["punctuation", "{"],
["selector", [
["id", "#foo"],
["combinator", ">"],
["class", ".bar"],
["pseudo-class", ":hover"],
["pseudo-element", ":after"]
]], ["punctuation", "{"],
["selector", [
"span",
["punctuation", ","],
"\r\ndiv"
]], ["punctuation", "{"],
["selector", [
"div ",
["combinator", ">"],
" p",
["punctuation", ","],
["class", ".css-li"],
["combinator", "~"],
["class", ".css-li"],
["punctuation", ","],
["class", ".previous-selector"],
["combinator", "+"],
["class", ".selector"],
["punctuation", ","],
["class", ".selected"],
["combinator", "||"],
" td"
]], ["punctuation", "{"]
]
----------------------------------------------------
Checks for pseudo-elements, pseudo-classes, classes and ids inside selectors.