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

114 lines
2.3 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 45,
"ctxt": 0
},
"rules": [
{
"type": "KeyframesRule",
"span": {
"start": 0,
"end": 45,
"ctxt": 0
},
"id": {
"type": "Text",
"span": {
"start": 11,
"end": 15,
"ctxt": 0
},
"value": "test"
},
"blocks": [
{
"span": {
"start": 18,
"end": 37,
"ctxt": 0
},
"selector": [
{
"type": "Text",
"span": {
"start": 18,
"end": 22,
"ctxt": 0
},
"value": "from"
}
],
"rule": {
"type": "DeclBlock",
"span": {
"start": 23,
"end": 37,
"ctxt": 0
},
"properties": [
{
"type": "Property",
"span": {
"start": 25,
"end": 35,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"value": "color"
},
"values": [
{
"type": "Text",
"span": {
"start": 32,
"end": 35,
"ctxt": 0
},
"value": "red"
}
],
"important": null
}
]
}
},
{
"span": {
"start": 38,
"end": 43,
"ctxt": 0
},
"selector": [
{
"type": "Text",
"span": {
"start": 38,
"end": 40,
"ctxt": 0
},
"value": "to"
}
],
"rule": {
"type": "DeclBlock",
"span": {
"start": 41,
"end": 43,
"ctxt": 0
},
"properties": []
}
}
]
}
]
}