@@ -17,7 +17,7 @@ let expected = {
1717 { type: " element" , name: " a" },
1818 { type: " id" , name: " content" },
1919 { type: " class" , name: " active" },
20- { type: " operator" , name : " >" , before: " " , after: " " },
20+ { type: " operator" , operator : " >" , before: " " , after: " " },
2121 { type: " element" , name: " div" },
2222 { type: " pseudo-element" , name: " first-line" },
2323 { type: " spacing" , value: " " },
@@ -43,6 +43,25 @@ let expected = {
4343}
4444
4545Tokenizer .stringify (expected) // === input
46+
47+ // * => { type: "universal" }
48+ // foo|element = { type: "element", name: "element", namespace: "foo" }
49+ // *|* = { type: "universal", namespace: "*" }
50+ // :has(h1, h2) => { type: "nested-pseudo-class", name: "has", nodes: [
51+ // {
52+ // type: "selector",
53+ // nodes: [
54+ // { type: "element", name: "h1" }
55+ // ]
56+ // },
57+ // {
58+ // type: "selector",
59+ // nodes: [
60+ // { type: "element", name: "h2" }
61+ // ],
62+ // before: " "
63+ // }
64+ // ] }
4665```
4766
4867## Building
0 commit comments