swc/css/parser/tests/fixture/at-rule/font-face/output.json
2021-10-27 03:38:05 +09:00

211 lines
5.6 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 180,
"ctxt": 0
},
"rules": [
{
"type": "FontFaceRule",
"span": {
"start": 0,
"end": 179,
"ctxt": 0
},
"block": {
"type": "Block",
"span": {
"start": 11,
"end": 179,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 17,
"end": 41,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 17,
"end": 28,
"ctxt": 0
},
"value": "font-family",
"raw": "font-family"
},
"value": [
{
"type": "String",
"span": {
"start": 30,
"end": 41,
"ctxt": 0
},
"value": "Open Sans",
"raw": "\"Open Sans\""
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 47,
"end": 176,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 47,
"end": 50,
"ctxt": 0
},
"value": "src",
"raw": "src"
},
"value": [
{
"type": "FnValue",
"span": {
"start": 52,
"end": 96,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 52,
"end": 55,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"args": [
{
"type": "String",
"span": {
"start": 56,
"end": 95,
"ctxt": 0
},
"value": "/fonts/OpenSans-Regular-webfont.woff2",
"raw": "\"/fonts/OpenSans-Regular-webfont.woff2\""
}
]
},
{
"type": "CommaValues",
"span": {
"start": 97,
"end": 161,
"ctxt": 0
},
"values": [
{
"type": "FnValue",
"span": {
"start": 97,
"end": 112,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 97,
"end": 103,
"ctxt": 0
},
"value": "format",
"raw": "format"
},
"args": [
{
"type": "String",
"span": {
"start": 104,
"end": 111,
"ctxt": 0
},
"value": "woff2",
"raw": "\"woff2\""
}
]
},
{
"type": "FnValue",
"span": {
"start": 118,
"end": 161,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 118,
"end": 121,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"args": [
{
"type": "String",
"span": {
"start": 122,
"end": 160,
"ctxt": 0
},
"value": "/fonts/OpenSans-Regular-webfont.woff",
"raw": "\"/fonts/OpenSans-Regular-webfont.woff\""
}
]
}
]
},
{
"type": "FnValue",
"span": {
"start": 162,
"end": 176,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 162,
"end": 168,
"ctxt": 0
},
"value": "format",
"raw": "format"
},
"args": [
{
"type": "String",
"span": {
"start": 169,
"end": 175,
"ctxt": 0
},
"value": "woff",
"raw": "\"woff\""
}
]
}
],
"important": null
}
]
}
}
]
}