swc/crates/swc_css_parser/tests/recovery/bad-url-token/invalid-escape/output.json

124 lines
2.9 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 46,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 45,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 4,
"end": 45,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 10,
"end": 42,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 10,
"end": 20,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 22,
"end": 42,
"ctxt": 0
},
"token": {
"BadUrl": {
"name": "url",
"raw_name": "url",
"value": "image.png\\\n ",
"raw_value": "image.png\\\n "
}
}
}
],
"important": null
}
]
}
}
]
}