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

731 lines
18 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 198,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 30,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 27,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 27,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"value": "html",
"raw": "html"
}
}
},
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 6,
"end": 7,
"ctxt": 0
},
"value": ">"
},
{
"type": "CompoundSelector",
"span": {
"start": 13,
"end": 17,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 13,
"end": 17,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 13,
"end": 17,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 13,
"end": 17,
"ctxt": 0
},
"value": "body",
"raw": "body"
}
}
},
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 18,
"end": 27,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 18,
"end": 27,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 19,
"end": 27,
"ctxt": 0
},
"value": "selector",
"raw": "selector"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 28,
"end": 30,
"ctxt": 0
},
"name": "{",
"value": []
}
},
{
"type": "QualifiedRule",
"span": {
"start": 31,
"end": 60,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 31,
"end": 57,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 31,
"end": 57,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"value": "head",
"raw": "head"
}
}
},
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 36,
"end": 37,
"ctxt": 0
},
"value": "~"
},
{
"type": "CompoundSelector",
"span": {
"start": 43,
"end": 47,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 43,
"end": 47,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 43,
"end": 47,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 43,
"end": 47,
"ctxt": 0
},
"value": "body",
"raw": "body"
}
}
},
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 48,
"end": 57,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 48,
"end": 57,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 49,
"end": 57,
"ctxt": 0
},
"value": "selector",
"raw": "selector"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 58,
"end": 60,
"ctxt": 0
},
"name": "{",
"value": []
}
},
{
"type": "QualifiedRule",
"span": {
"start": 62,
"end": 93,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 62,
"end": 71,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 62,
"end": 71,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 62,
"end": 71,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 62,
"end": 71,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 63,
"end": 71,
"ctxt": 0
},
"value": "selector",
"raw": "selector"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 72,
"end": 93,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 74,
"end": 90,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 74,
"end": 83,
"ctxt": 0
},
"value": "_property",
"raw": "_property"
},
"value": [
{
"type": "Ident",
"span": {
"start": 85,
"end": 90,
"ctxt": 0
},
"value": "value",
"raw": "value"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 94,
"end": 125,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 95,
"end": 103,
"ctxt": 0
},
"value": "selector",
"raw": "selector"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 104,
"end": 125,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 106,
"end": 122,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 106,
"end": 115,
"ctxt": 0
},
"value": "-property",
"raw": "-property"
},
"value": [
{
"type": "Ident",
"span": {
"start": 117,
"end": 122,
"ctxt": 0
},
"value": "value",
"raw": "value"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 126,
"end": 158,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 126,
"end": 135,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 126,
"end": 135,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 126,
"end": 135,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 126,
"end": 135,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 127,
"end": 135,
"ctxt": 0
},
"value": "selector",
"raw": "selector"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 136,
"end": 158,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 138,
"end": 155,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 138,
"end": 146,
"ctxt": 0
},
"value": "property",
"raw": "property"
},
"value": [
{
"type": "Ident",
"span": {
"start": 148,
"end": 155,
"ctxt": 0
},
"value": "value\t",
"raw": "value\\9"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 159,
"end": 197,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 159,
"end": 168,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 159,
"end": 168,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 159,
"end": 168,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 159,
"end": 168,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 160,
"end": 168,
"ctxt": 0
},
"value": "selector",
"raw": "selector"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 169,
"end": 197,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 171,
"end": 194,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 171,
"end": 179,
"ctxt": 0
},
"value": "property",
"raw": "property"
},
"value": [
{
"type": "Ident",
"span": {
"start": 187,
"end": 194,
"ctxt": 0
},
"value": "value\t",
"raw": "value\\9"
}
],
"important": null
}
]
}
}
]
}