swc/crates/swc_css_parser/tests/fixture/function/url/output.json

1467 lines
39 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 1252,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 1251,
"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": "SimpleBlock",
"span": {
"start": 2,
"end": 1251,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 109,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 8,
"end": 24,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 26,
"end": 109,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 26,
"end": 29,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 30,
"end": 108,
"ctxt": 0
},
"before": "",
"after": "",
"value": "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
"raw": "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 115,
"end": 155,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 115,
"end": 131,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 133,
"end": 155,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 133,
"end": 136,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 137,
"end": 154,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "\"./image (1).jpg\""
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 161,
"end": 201,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 161,
"end": 177,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 179,
"end": 201,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 179,
"end": 182,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 183,
"end": 200,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "'./image (1).jpg'"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 207,
"end": 247,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 207,
"end": 223,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 225,
"end": 247,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 225,
"end": 228,
"ctxt": 0
},
"value": "URL",
"raw": "URL"
},
"value": {
"type": "String",
"span": {
"start": 229,
"end": 246,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "'./image (1).jpg'"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 253,
"end": 296,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 253,
"end": 269,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 271,
"end": 296,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 271,
"end": 274,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 278,
"end": 295,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "'./image (1).jpg'"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 302,
"end": 345,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 302,
"end": 318,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 320,
"end": 345,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 320,
"end": 323,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 324,
"end": 341,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "'./image (1).jpg'"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 351,
"end": 397,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 351,
"end": 367,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 369,
"end": 397,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 369,
"end": 372,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 376,
"end": 393,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "'./image (1).jpg'"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 403,
"end": 459,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 403,
"end": 419,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 421,
"end": 459,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 421,
"end": 424,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 433,
"end": 450,
"ctxt": 0
},
"value": "./image (1).jpg",
"raw": "'./image (1).jpg'"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 465,
"end": 488,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 465,
"end": 481,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 483,
"end": 488,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 483,
"end": 486,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 487,
"end": 487,
"ctxt": 0
},
"before": "",
"after": "",
"value": "",
"raw": ""
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 494,
"end": 520,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 494,
"end": 510,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 512,
"end": 520,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 512,
"end": 515,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 516,
"end": 519,
"ctxt": 0
},
"before": " ",
"after": "",
"value": "",
"raw": ""
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 526,
"end": 551,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 526,
"end": 542,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 544,
"end": 551,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 544,
"end": 547,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 548,
"end": 550,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 557,
"end": 588,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 557,
"end": 573,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 575,
"end": 588,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 575,
"end": 578,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 582,
"end": 584,
"ctxt": 0
},
"value": "",
"raw": "\"\""
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 594,
"end": 619,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 594,
"end": 610,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 612,
"end": 619,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 612,
"end": 615,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 616,
"end": 618,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 625,
"end": 656,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 625,
"end": 641,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 643,
"end": 656,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 643,
"end": 646,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 650,
"end": 652,
"ctxt": 0
},
"value": "",
"raw": "''"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 662,
"end": 694,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 662,
"end": 678,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 680,
"end": 694,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 680,
"end": 683,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 687,
"end": 690,
"ctxt": 0
},
"value": " ",
"raw": "' '"
},
"modifiers": []
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 700,
"end": 734,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 700,
"end": 716,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 718,
"end": 734,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 718,
"end": 721,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 722,
"end": 733,
"ctxt": 0
},
"before": "",
"after": "",
"value": "./image.png",
"raw": "./image.png"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 740,
"end": 780,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 740,
"end": 756,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 758,
"end": 780,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 758,
"end": 761,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 762,
"end": 779,
"ctxt": 0
},
"before": " ",
"after": " ",
"value": "./image.png",
"raw": "./image.png"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 786,
"end": 829,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 786,
"end": 802,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 804,
"end": 829,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 804,
"end": 807,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 808,
"end": 828,
"ctxt": 0
},
"before": " ",
"after": " ",
"value": "./image2.png",
"raw": "./image\\32.png"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 835,
"end": 888,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 835,
"end": 851,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 853,
"end": 888,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 853,
"end": 856,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 857,
"end": 887,
"ctxt": 0
},
"before": " \n ",
"after": " \n ",
"value": "./image2.png",
"raw": "./image\\32.png"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 894,
"end": 974,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 894,
"end": 910,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 912,
"end": 974,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 912,
"end": 915,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 916,
"end": 973,
"ctxt": 0
},
"before": "\n \n \n \n ",
"after": "\n \n \n \n ",
"value": "./image2.png",
"raw": "./image\\32.png"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 980,
"end": 1039,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 980,
"end": 996,
"ctxt": 0
},
"value": "background-image",
"raw": "background-image"
},
"value": [
{
"type": "Url",
"span": {
"start": 998,
"end": 1039,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 998,
"end": 1001,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1002,
"end": 1038,
"ctxt": 0
},
"before": " \n\n\n\n ",
"after": "\n\n\n\n ",
"value": "./image2.png",
"raw": "./image\\32.png"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1045,
"end": 1076,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1045,
"end": 1055,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 1057,
"end": 1076,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1057,
"end": 1060,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1061,
"end": 1075,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png\u0001",
"raw": "image.png\\0001"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1082,
"end": 1110,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1082,
"end": 1092,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 1094,
"end": 1110,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1094,
"end": 1097,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1098,
"end": 1109,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png\u0001",
"raw": "image.png\\1"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1116,
"end": 1147,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1116,
"end": 1126,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 1128,
"end": 1147,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1128,
"end": 1131,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1132,
"end": 1146,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png힙",
"raw": "image.png\\D799"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1153,
"end": 1184,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1153,
"end": 1163,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 1165,
"end": 1184,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1165,
"end": 1168,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1169,
"end": 1183,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png",
"raw": "image.png\\E000"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1190,
"end": 1223,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1190,
"end": 1200,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 1202,
"end": 1223,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1202,
"end": 1205,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1206,
"end": 1222,
"ctxt": 0
},
"before": "",
"after": "",
"value": "image.png􏿿",
"raw": "image.png\\10FFFF"
},
"modifiers": null
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1229,
"end": 1248,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1229,
"end": 1239,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Url",
"span": {
"start": 1241,
"end": 1248,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1241,
"end": 1244,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "UrlValueRaw",
"span": {
"start": 1245,
"end": 1247,
"ctxt": 0
},
"before": "",
"after": "",
"value": "18",
"raw": "18"
},
"modifiers": null
}
],
"important": null
}
]
}
}
]
}