-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathatrule_feature.test
87 lines (77 loc) · 1.76 KB
/
atrule_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
77
78
79
80
81
82
83
84
85
86
87
@import url(foo.css);
@media print {}
@media (min-width: 640px) and (min-height: 1000px) {}
@supports (top: 50vmax)
or (top: 50vw) {}
@main-color: red;
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
----------------------------------------------------
[
["atrule", [
["rule", "@import"],
["url", [
["function", "url"],
["punctuation", "("],
"foo.css",
["punctuation", ")"]
]],
["punctuation", ";"]
]],
["atrule", [
["rule", "@media"],
" print"
]],
["punctuation", "{"],
["punctuation", "}"],
["atrule", [
["rule", "@media"],
["punctuation", "("],
["property", "min-width"],
["punctuation", ":"],
" 640px",
["punctuation", ")"],
["keyword", "and"],
["punctuation", "("],
["property", "min-height"],
["punctuation", ":"],
" 1000px",
["punctuation", ")"]
]],
["punctuation", "{"],
["punctuation", "}"],
["atrule", [
["rule", "@supports"],
["punctuation", "("],
["property", "top"],
["punctuation", ":"],
" 50vmax",
["punctuation", ")"],
["keyword", "or"],
["punctuation", "("],
["property", "top"],
["punctuation", ":"],
" 50vw",
["punctuation", ")"]
]],
["punctuation", "{"],
["punctuation", "}"],
["atrule", [
["rule", "@main-color"],
["punctuation", ":"],
" red",
["punctuation", ";"]
]],
["atrule", [
["rule", "@import"],
["url", [
["function", "url"],
["punctuation", "("],
["string", "'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'"],
["punctuation", ")"]
]],
["punctuation", ";"]
]]
]
----------------------------------------------------
Checks for at-rules.
Also checks for LESS variables.