swc/css/parser/tests/fixture/esbuild/misc/bMhJJBpJJs8SIl3cQ4UjFw/output.json
Alexander Akait 0b76d29ae4
feat(css/ast): Add SelectorList (#2639)
swc_css_ast:
 - Add `SelectorLsit`.
 - Use `SelectorList` instead of `Vec<ComplexSelector>`.
2021-11-04 09:54:55 +00:00

127 lines
3.1 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 34,
"ctxt": 0
},
"rules": [
{
"type": "PageRule",
"span": {
"start": 0,
"end": 34,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 6,
"end": 34,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 18,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 8,
"end": 13,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Text",
"span": {
"start": 15,
"end": 18,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "NestedPageRule",
"span": {
"start": 20,
"end": 32,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 20,
"end": 29,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 20,
"end": 29,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 20,
"end": 29,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "AtSelector",
"span": {
"start": 20,
"end": 29,
"ctxt": 0
},
"text": {
"type": "Text",
"span": {
"start": 20,
"end": 29,
"ctxt": 0
},
"value": "top-left",
"raw": "top-left"
}
}
]
}
]
}
]
},
"block": {
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"items": []
}
}
]
}
}
]
}