swc/crates/swc_css_parser/tests/recovery/bad-url-token/double-quotes/output.json

155 lines
3.6 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 58,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 57,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 5,
"end": 57,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 38,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 21,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 23,
"end": 38,
"ctxt": 0
},
"token": {
"BadUrl": {
"name": "url",
"raw_name": "url",
"value": "image\".png",
"raw_value": "image\".png"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 44,
"end": 54,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 44,
"end": 49,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 51,
"end": 54,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}