swc/css/parser/tests/fixture/esbuild/misc/p4k8Aj2Nw7Pd4QNaHfLCyg/output.json
Alexander Akait 20f4e2148c
refactor(css/ast): Use names from specification for ast types (#2643)
swc_css_ast:
 - Rename `AttrSelectorOp` to `AttrSelectorMatcher`.
2021-11-05 11:42:51 +00:00

92 lines
2.1 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 13,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 10,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 10,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 10,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "AttributeSelector",
"span": {
"start": 0,
"end": 10,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"value": "attr",
"raw": "attr"
},
"matcher": "=",
"value": {
"type": "String",
"span": {
"start": 6,
"end": 9,
"ctxt": 0
},
"value": "-",
"raw": "\"-\""
},
"modifier": null
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 11,
"end": 13,
"ctxt": 0
},
"items": []
}
}
]
}