Debian Codegraph @

tests/languages/stylus/selector_feature.test

raw
1 div
2 span[foo=bar]
3 color red
4
5 div input,
6 input:nth-child(2n)
7 color red
8
9 #foo
10 .bar::before
11 color red
12
13 #foo
14 .bar {
15 color red
16 }
17
18 {foo} {bar}:hover
19 color red
20
21 div // comment
22 display inline-block // comment
23
24 ----------------------------------------------------
25
26 [
27 ["selector", ["div\r\nspan[foo=bar]"]],
28 ["property-declaration", [["property", ["color"]], ["color", "red"]]],
29 ["selector", ["div input", ["punctuation", ","], "\r\ninput:nth-child(2n)"]],
30 ["property-declaration", [["property", ["color"]], ["color", "red"]]],
31 ["selector", ["#foo"]],
32 ["selector", [".bar::before"]],
33 ["property-declaration", [["property", ["color"]], ["color", "red"]]],
34 ["selector", ["#foo"]],
35 ["selector", [".bar ", ["punctuation", "{"]]],
36 ["property-declaration", [["property", ["color"]], ["color", "red"]]],
37 ["punctuation", "}"],
38 ["selector", [
39 ["interpolation", [
40 ["delimiter", "{"], "foo", ["delimiter", "}"]
41 ]],
42 ["interpolation", [
43 ["delimiter", "{"], "bar", ["delimiter", "}"]
44 ]],
45 ":hover"
46 ]],
47 ["property-declaration", [["property", ["color"]], ["color", "red"]]],
48 ["selector", ["div ", ["comment", "// comment"]]],
49 ["property-declaration", [["property", ["display"]], " inline-block ", ["comment", "// comment"]]]
50 ]
51
52 ----------------------------------------------------
53
54 Checks for selectors.