swc/css/parser/tests/fixture/rome/font/output.json
Donny/강동윤 b206404d94
feat(css): Recover from invalid properties (#2312)
swc_css_ast:
 - Add `DeclBlockItem`.
 - Change `DeclBlock.properties` to `DeclBlock.items`.

swc_css_parser:
 - Add a way to recovered errors.
2021-09-28 09:58:56 +00:00

77 lines
1.6 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 30,
"ctxt": 0
},
"rules": [
{
"type": "FontFaceRule",
"span": {
"start": 0,
"end": 29,
"ctxt": 0
},
"block": {
"type": "DeclBlock",
"span": {
"start": 11,
"end": 29,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 14,
"end": 26,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 14,
"end": 17,
"ctxt": 0
},
"value": "src"
},
"values": [
{
"type": "FnValue",
"span": {
"start": 19,
"end": 26,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"value": "url"
},
"args": [
{
"type": "String",
"span": {
"start": 23,
"end": 25,
"ctxt": 0
},
"value": ""
}
]
}
],
"important": null
}
]
}
}
]
}