swc/crates/swc_css_parser/tests/recovery/value/url/output.json

487 lines
12 KiB
JSON
Raw Blame History

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 292,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 291,
"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": "Block",
"span": {
"start": 4,
"end": 291,
"ctxt": 0
},
"value": [
{
"type": "Declaration",
"span": {
"start": 10,
"end": 53,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 10,
"end": 15,
"ctxt": 0
},
"value": "--foo",
"raw": "--foo"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 17,
"end": 53,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 17,
"end": 53,
"ctxt": 0
},
"token": {
"Str": {
"value": "http://www.example.com/pinkish.gif",
"raw": "\"http://www.example.com/pinkish.gif\""
}
}
}
]
}
],
"important": null
},
{
"type": "Tokens",
"span": {
"start": 59,
"end": 86,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 59,
"end": 69,
"ctxt": 0
},
"token": {
"Ident": {
"value": "background",
"raw": "background"
}
}
},
{
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 70,
"end": 71,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 71,
"end": 85,
"ctxt": 0
},
"token": {
"BadUrl": {
"name": "url",
"raw_name": "url",
"value": "var(--foo",
"raw_value": "var(--foo"
}
}
},
{
"span": {
"start": 85,
"end": 86,
"ctxt": 0
},
"token": "RParen"
}
]
},
{
"type": "Declaration",
"span": {
"start": 92,
"end": 125,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 92,
"end": 102,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 104,
"end": 125,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 104,
"end": 107,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 108,
"end": 124,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png<6E>",
"raw": "image.png\\999999"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 131,
"end": 159,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 131,
"end": 141,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 143,
"end": 159,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 143,
"end": 146,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 147,
"end": 158,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png<6E>",
"raw": "image.png\\0"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 165,
"end": 196,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 165,
"end": 175,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 177,
"end": 196,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 177,
"end": 180,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 181,
"end": 195,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png<6E>",
"raw": "image.png\\D800"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 202,
"end": 233,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 202,
"end": 212,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 214,
"end": 233,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 214,
"end": 217,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 218,
"end": 232,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png<6E>",
"raw": "image.png\\DFFF"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 239,
"end": 272,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 239,
"end": 249,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 251,
"end": 272,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 251,
"end": 254,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 255,
"end": 271,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png<6E>",
"raw": "image.png\\11FFFF"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 278,
"end": 288,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 278,
"end": 283,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 285,
"end": 288,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}