swc/css/parser/tests/fixture/esbuild/misc/ugX8SLCLRvWN-wDCK7ouyA/output.json
강동윤 0d63470eba
feat(css): Groundwork for css processor (#2105)
swc_css_ast:
 - Rename `Values` to `SpaceValues`.

swc_css_parser:
 - Add `parse_str`.
 - Make `ErrorKind` `#[non_exhaustive]`.
 - Fix span.

swc_css_visit:
 - Create visitors.
2021-08-20 07:48:08 +00:00

74 lines
1.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 30,
"ctxt": 0
},
"rules": [
{
"type": "ViewportRule",
"span": {
"start": 0,
"end": 30,
"ctxt": 0
},
"block": {
"type": "DeclBlock",
"span": {
"start": 14,
"end": 30,
"ctxt": 0
},
"properties": [
{
"type": "Property",
"span": {
"start": 16,
"end": 28,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"value": "width"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 23,
"end": 28,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 23,
"end": 26,
"ctxt": 0
},
"value": 100.0
},
"unit": {
"span": {
"start": 26,
"end": 28,
"ctxt": 0
},
"kind": "vw"
}
}
],
"important": null
}
]
}
}
]
}