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

228 lines
5.7 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 181,
"ctxt": 0
},
"rules": [
{
"type": "AtRule",
"span": {
"start": 1,
"end": 180,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 2,
"end": 11,
"ctxt": 0
},
"value": "font-face",
"raw": "font-face"
},
"prelude": null,
"block": {
"type": "SimpleBlock",
"span": {
"start": 12,
"end": 180,
"ctxt": 0
},
"name": {
"type": "PreservedToken",
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 18,
"end": 42,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 18,
"end": 29,
"ctxt": 0
},
"value": "font-family",
"raw": "font-family"
},
"value": [
{
"type": "String",
"span": {
"start": 31,
"end": 42,
"ctxt": 0
},
"value": "Open Sans",
"raw": "\"Open Sans\""
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 48,
"end": 177,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 48,
"end": 51,
"ctxt": 0
},
"value": "src",
"raw": "src"
},
"value": [
{
"type": "Url",
"span": {
"start": 53,
"end": 97,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 53,
"end": 56,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 57,
"end": 96,
"ctxt": 0
},
"value": "/fonts/OpenSans-Regular-webfont.woff2",
"raw": "\"/fonts/OpenSans-Regular-webfont.woff2\""
},
"modifiers": []
},
{
"type": "Function",
"span": {
"start": 98,
"end": 113,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 98,
"end": 104,
"ctxt": 0
},
"value": "format",
"raw": "format"
},
"value": [
{
"type": "String",
"span": {
"start": 105,
"end": 112,
"ctxt": 0
},
"value": "woff2",
"raw": "\"woff2\""
}
]
},
{
"type": "Delimiter",
"span": {
"start": 113,
"end": 114,
"ctxt": 0
},
"value": ","
},
{
"type": "Url",
"span": {
"start": 119,
"end": 162,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 119,
"end": 122,
"ctxt": 0
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 123,
"end": 161,
"ctxt": 0
},
"value": "/fonts/OpenSans-Regular-webfont.woff",
"raw": "\"/fonts/OpenSans-Regular-webfont.woff\""
},
"modifiers": []
},
{
"type": "Function",
"span": {
"start": 163,
"end": 177,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 163,
"end": 169,
"ctxt": 0
},
"value": "format",
"raw": "format"
},
"value": [
{
"type": "String",
"span": {
"start": 170,
"end": 176,
"ctxt": 0
},
"value": "woff",
"raw": "\"woff\""
}
]
}
],
"important": null
}
]
}
}
]
}