swc/css/parser/tests/fixture/esbuild/misc/aVoVLZHijXjMsJvx4rbJGQ/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

74 lines
1.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 26,
"ctxt": 0
},
"rules": [
{
"type": "ViewportRule",
"span": {
"start": 0,
"end": 26,
"ctxt": 0
},
"block": {
"type": "DeclBlock",
"span": {
"start": 10,
"end": 26,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 12,
"end": 24,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 12,
"end": 17,
"ctxt": 0
},
"value": "width"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 19,
"end": 24,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"value": 100.0
},
"unit": {
"span": {
"start": 22,
"end": 24,
"ctxt": 0
},
"kind": "vw"
}
}
],
"important": null
}
]
}
}
]
}