swc/crates/swc_css_parser/tests/fixture/rome/comment/output.json

332 lines
7.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 19,
"end": 128,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 21,
"end": 55,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 23,
"end": 55,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 26,
"end": 38,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 26,
"end": 31,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 33,
"end": 38,
"ctxt": 0
},
"value": "white",
"raw": "white"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 57,
"end": 91,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 59,
"end": 91,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 62,
"end": 88,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 62,
"end": 67,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 83,
"end": 88,
"ctxt": 0
},
"value": "white",
"raw": "white"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 93,
"end": 127,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 109,
"end": 127,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 112,
"end": 124,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 112,
"end": 117,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 119,
"end": 124,
"ctxt": 0
},
"value": "white",
"raw": "white"
}
],
"important": null
}
]
}
}
]
}