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

481 lines
11 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 14,
"end": 506,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 14,
"end": 95,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 29,
"end": 95,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 44,
"end": 79,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 44,
"end": 49,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 76,
"end": 79,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 133,
"end": 228,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 137,
"end": 228,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 160,
"end": 172,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 160,
"end": 165,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 167,
"end": 172,
"ctxt": 0
},
"value": "black",
"raw": "black"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 196,
"end": 211,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 196,
"end": 206,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Ident",
"span": {
"start": 208,
"end": 211,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 238,
"end": 273,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 238,
"end": 239,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 240,
"end": 273,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 246,
"end": 258,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 246,
"end": 251,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 253,
"end": 258,
"ctxt": 0
},
"value": "black",
"raw": "black"
}
],
"important": null
}
]
}
},
{
"type": "AtRule",
"span": {
"start": 275,
"end": 315,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 276,
"end": 281,
"ctxt": 0
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 294,
"end": 300,
"ctxt": 0
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 294,
"end": 300,
"ctxt": 0
},
"modifier": null,
"mediaType": {
"type": "Ident",
"span": {
"start": 294,
"end": 300,
"ctxt": 0
},
"value": "screen",
"raw": "screen"
},
"keyword": null,
"condition": null
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 313,
"end": 315,
"ctxt": 0
},
"name": "{",
"value": []
}
},
{
"type": "AtRule",
"span": {
"start": 316,
"end": 360,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 317,
"end": 322,
"ctxt": 0
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 337,
"end": 343,
"ctxt": 0
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 337,
"end": 343,
"ctxt": 0
},
"modifier": null,
"mediaType": {
"type": "Ident",
"span": {
"start": 337,
"end": 343,
"ctxt": 0
},
"value": "screen",
"raw": "screen"
},
"keyword": null,
"condition": null
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 358,
"end": 360,
"ctxt": 0
},
"name": "{",
"value": []
}
}
]
}