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

213 lines
5.4 KiB
JSON
Raw Normal View History

2021-08-19 08:16:32 +03:00
{
"type": "Stylesheet",
"span": {
"start": 21,
"end": 220,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-08-19 08:16:32 +03:00
"span": {
"start": 22,
"end": 78,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 22,
"end": 26,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 22,
"end": 26,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 22,
"end": 26,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 22,
2021-08-19 08:16:32 +03:00
"end": 26,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 22,
"end": 26,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Identifier",
"span": {
"start": 22,
"end": 26,
"ctxt": 0
},
"value": "body",
"raw": "body"
}
}
},
"subclassSelectors": []
}
]
}
]
},
2021-08-19 08:16:32 +03:00
"block": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 27,
"end": 78,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 33,
"end": 48,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 33,
"end": 43,
"ctxt": 0
},
"value": "background",
"raw": "background"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 45,
"end": 48,
"ctxt": 0
},
"value": "red",
"raw": "red"
2021-08-19 08:16:32 +03:00
}
],
"important": null
},
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 54,
"end": 75,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 54,
"end": 59,
"ctxt": 0
},
"value": "width",
"raw": "width"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Function",
2021-08-19 08:16:32 +03:00
"span": {
"start": 61,
"end": 75,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 61,
"end": 65,
"ctxt": 0
},
"value": "calc",
"raw": "calc"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "BinValue",
"span": {
"start": 66,
"end": 74,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"op": "+",
"left": {
"type": "Dimension",
2021-08-19 08:16:32 +03:00
"span": {
"start": 66,
"end": 69,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 66,
"end": 67,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
2021-08-19 08:16:32 +03:00
},
"unit": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 67,
"end": 69,
"ctxt": 0
},
"value": "px",
"raw": "px"
2021-08-19 08:16:32 +03:00
}
},
"right": {
"type": "Percent",
2021-08-19 08:16:32 +03:00
"span": {
"start": 72,
"end": 74,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 72,
"end": 73,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
2021-08-19 08:16:32 +03:00
}
}
}
]
}
],
"important": null
}
]
}
}
]
}