swc/css/parser/tests/fixture/esbuild/misc/sI7kJsMAHm4ehV5Ec9i9hg/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": 7,
"ctxt": 0
},
"value": "attr~",
"raw": "attr\\~"
},
"matcher": "=",
"value": {
"type": "Text",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": "x",
"raw": "x"
},
"modifier": null
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 11,
"end": 13,
"ctxt": 0
},
"items": []
}
}
]
}