Branch
Hash :
6d663b6e
Author :
Date :
2020-05-08T04:17:54
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
div
span[foo=bar]
color red
div input,
input:nth-child(2n)
color red
#foo
.bar::before
color red
#foo
.bar {
color red
}
{foo} {bar}:hover
color red
div // comment
display inline-block // comment
----------------------------------------------------
[
["selector", ["div\r\nspan[foo=bar]"]],
["property-declaration", [["property", ["color"]], ["color", "red"]]],
["selector", ["div input", ["punctuation", ","], "\r\ninput:nth-child(2n)"]],
["property-declaration", [["property", ["color"]], ["color", "red"]]],
["selector", ["#foo"]],
["selector", [".bar::before"]],
["property-declaration", [["property", ["color"]], ["color", "red"]]],
["selector", ["#foo"]],
["selector", [".bar ", ["punctuation", "{"]]],
["property-declaration", [["property", ["color"]], ["color", "red"]]],
["punctuation", "}"],
["selector", [
["interpolation", [
["delimiter", "{"], "foo", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "{"], "bar", ["delimiter", "}"]
]],
":hover"
]],
["property-declaration", [["property", ["color"]], ["color", "red"]]],
["selector", ["div ", ["comment", "// comment"]]],
["property-declaration", [["property", ["display"]], " inline-block ", ["comment", "// comment"]]]
]
----------------------------------------------------
Checks for selectors.