swc/css/parser/tests/fixture/at-rule/import/output.json
2021-10-11 12:33:11 +09:00

262 lines
4.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 228,
"ctxt": 0
},
"rules": [
{
"type": "ImportRule",
"span": {
"start": 0,
"end": 27,
"ctxt": 0
},
"src": {
"type": "FnValue",
"span": {
"start": 8,
"end": 26,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 8,
"end": 11,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"args": [
{
"type": "String",
"span": {
"start": 12,
"end": 25,
"ctxt": 0
},
"value": "./style.css",
"raw": "\"./style.css\""
}
]
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 28,
"end": 55,
"ctxt": 0
},
"src": {
"type": "FnValue",
"span": {
"start": 36,
"end": 54,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 36,
"end": 39,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"args": [
{
"type": "String",
"span": {
"start": 40,
"end": 53,
"ctxt": 0
},
"value": "./style.css",
"raw": "'./style.css'"
}
]
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 56,
"end": 81,
"ctxt": 0
},
"src": {
"type": "UrlValue",
"span": {
"start": 64,
"end": 80,
"ctxt": 0
},
"url": "./style.css",
"raw": "./style.css"
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 82,
"end": 104,
"ctxt": 0
},
"src": {
"type": "String",
"span": {
"start": 90,
"end": 103,
"ctxt": 0
},
"value": "./style.css",
"raw": "'./style.css'"
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 105,
"end": 127,
"ctxt": 0
},
"src": {
"type": "String",
"span": {
"start": 113,
"end": 126,
"ctxt": 0
},
"value": "./style.css",
"raw": "\"./style.css\""
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 128,
"end": 155,
"ctxt": 0
},
"src": {
"type": "FnValue",
"span": {
"start": 136,
"end": 154,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 136,
"end": 139,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"args": [
{
"type": "String",
"span": {
"start": 140,
"end": 153,
"ctxt": 0
},
"value": "./style.css",
"raw": "\"./style.css\""
}
]
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 156,
"end": 181,
"ctxt": 0
},
"src": {
"type": "UrlValue",
"span": {
"start": 164,
"end": 180,
"ctxt": 0
},
"url": "./style.css",
"raw": "./style.css"
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 182,
"end": 209,
"ctxt": 0
},
"src": {
"type": "FnValue",
"span": {
"start": 190,
"end": 208,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 190,
"end": 193,
"ctxt": 0
},
"value": "URL",
"raw": "URL"
},
"args": [
{
"type": "String",
"span": {
"start": 194,
"end": 207,
"ctxt": 0
},
"value": "./style.css",
"raw": "\"./style.css\""
}
]
},
"condition": null
},
{
"type": "ImportRule",
"span": {
"start": 210,
"end": 228,
"ctxt": 0
},
"src": {
"type": "String",
"span": {
"start": 217,
"end": 227,
"ctxt": 0
},
"value": "test.css",
"raw": "\"test.css\""
},
"condition": null
}
]
}