swc/crates/swc_css_parser/tests/recovery/bad-url-token/whitespace-in-middle/output.json

123 lines
2.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 54,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 53,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 53,
"ctxt": 0
},
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 50,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 8,
"end": 24,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 26,
"end": 50,
"ctxt": 0
},
"token": {
"BadUrl": {
"name": "url",
"raw_name": "url",
"value": " ./image.jpg a ",
"raw_value": " ./image.jpg a "
}
}
}
],
"important": null
}
]
}
}
]
}