mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 21:54:36 +03:00
b206404d94
swc_css_ast: - Add `DeclBlockItem`. - Change `DeclBlock.properties` to `DeclBlock.items`. swc_css_parser: - Add a way to recovered errors.
74 lines
1.5 KiB
JSON
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
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|