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

244 lines
6.7 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 22,
"end": 221,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 23,
"end": 79,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 23,
"end": 27,
"ctxt": 0
},
"value": "body",
"raw": "body"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 28,
"end": 79,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 34,
"end": 49,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 34,
"end": 44,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Ident",
"span": {
"start": 46,
"end": 49,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 55,
"end": 76,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 55,
"end": 60,
"ctxt": 0
},
"value": "width",
"raw": "width"
},
"value": [
{
"type": "Function",
"span": {
"start": 62,
"end": 76,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 62,
"end": 66,
"ctxt": 0
},
"value": "calc",
"raw": "calc"
},
"value": [
{
"type": "CalcSum",
"span": {
"start": 67,
"end": 75,
"ctxt": 0
},
"expressions": [
{
"type": "CalcProduct",
"span": {
"start": 67,
"end": 70,
"ctxt": 0
},
"expressions": [
{
"type": "Length",
"span": {
"start": 67,
"end": 70,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"type": "Ident",
"span": {
"start": 68,
"end": 70,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
}
]
},
{
"type": "CalcOperator",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": "+"
},
{
"type": "CalcProduct",
"span": {
"start": 73,
"end": 75,
"ctxt": 0
},
"expressions": [
{
"type": "Percentage",
"span": {
"start": 73,
"end": 75,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 73,
"end": 74,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
}
]
}
]
}
]
}
],
"important": null
}
]
}
}
]
}