swc/css/parser/tests/fixture/esbuild/misc/egyt9Hk9xnn2Xfbi3Ckfrg/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

110 lines
2.4 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 17,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 4,
"end": 14,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 4,
"end": 9,
"ctxt": 0
},
"value": "width",
"raw": "width"
},
"value": [
{
"type": "Number",
"span": {
"start": 11,
"end": 14,
"ctxt": 0
},
"value": 0.0,
"raw": "+.0"
}
],
"important": null
}
]
}
}
]
}