swc/crates/swc_css_parser/tests/recovery/number/output.json

241 lines
5.9 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 71,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 71,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 3,
"end": 71,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 9,
"end": 69,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 9,
"end": 13,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Length",
"span": {
"start": 15,
"end": 22,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 15,
"end": 20,
"ctxt": 0
},
"value": 10.1,
"raw": "10.10"
},
"unit": {
"type": "Ident",
"span": {
"start": 20,
"end": 22,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
},
{
"type": "Ident",
"span": {
"start": 27,
"end": 32,
"ctxt": 0
},
"value": "prop1",
"raw": "prop1"
},
{
"type": "PreservedToken",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Length",
"span": {
"start": 34,
"end": 38,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 34,
"end": 36,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
"unit": {
"type": "Ident",
"span": {
"start": 36,
"end": 38,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
},
{
"type": "Ident",
"span": {
"start": 43,
"end": 48,
"ctxt": 0
},
"value": "prop2",
"raw": "prop2"
},
{
"type": "PreservedToken",
"span": {
"start": 48,
"end": 49,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Integer",
"span": {
"start": 50,
"end": 52,
"ctxt": 0
},
"value": 10,
"raw": "10"
},
{
"type": "Ident",
"span": {
"start": 57,
"end": 62,
"ctxt": 0
},
"value": "prop3",
"raw": "prop3"
},
{
"type": "PreservedToken",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Number",
"span": {
"start": 64,
"end": 69,
"ctxt": 0
},
"value": 10.1,
"raw": "10.10"
}
],
"important": null
}
]
}
}
]
}