swc/crates/swc_css_parser/tests/fixture/at-rule/font-face/output.json

209 lines
5.3 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 180,
"ctxt": 0
},
"rules": [
{
"type": "FontFaceRule",
"span": {
"start": 0,
"end": 179,
"ctxt": 0
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 11,
"end": 179,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 17,
"end": 41,
"ctxt": 0
},
"name": {
"type": "Ident",
"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
},
"name": {
"type": "Ident",
"span": {
"start": 47,
"end": 50,
"ctxt": 0
},
"value": "src",
"raw": "src"
},
"value": [
{
"type": "Url",
"span": {
"start": 52,
"end": 96,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 52,
"end": 55,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 56,
"end": 95,
"ctxt": 0
},
"value": "/fonts/OpenSans-Regular-webfont.woff2",
"raw": "\"/fonts/OpenSans-Regular-webfont.woff2\""
},
"modifiers": []
},
{
"type": "Function",
"span": {
"start": 97,
"end": 112,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 97,
"end": 103,
"ctxt": 0
},
"value": "format",
"raw": "format"
},
"value": [
{
"type": "String",
"span": {
"start": 104,
"end": 111,
"ctxt": 0
},
"value": "woff2",
"raw": "\"woff2\""
}
]
},
{
"type": "Delimiter",
"span": {
"start": 112,
"end": 113,
"ctxt": 0
},
"value": ","
},
{
"type": "Url",
"span": {
"start": 118,
"end": 161,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 118,
"end": 121,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 122,
"end": 160,
"ctxt": 0
},
"value": "/fonts/OpenSans-Regular-webfont.woff",
"raw": "\"/fonts/OpenSans-Regular-webfont.woff\""
},
"modifiers": []
},
{
"type": "Function",
"span": {
"start": 162,
"end": 176,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 162,
"end": 168,
"ctxt": 0
},
"value": "format",
"raw": "format"
},
"value": [
{
"type": "String",
"span": {
"start": 169,
"end": 175,
"ctxt": 0
},
"value": "woff",
"raw": "\"woff\""
}
]
}
],
"important": null
}
]
}
}
]
}