swc/crates/swc_css_parser/tests/fixture/value/frequency/output.json
2022-12-16 04:04:07 +00:00

193 lines
4.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 40,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 39,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 5,
"end": 39,
"ctxt": 0
},
"name": {
"type": "PreservedToken",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 20,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 15,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Frequency",
"span": {
"start": 17,
"end": 20,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"type": "Ident",
"span": {
"start": 18,
"end": 20,
"ctxt": 0
},
"value": "hz",
"raw": "Hz"
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 26,
"end": 36,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 26,
"end": 30,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Frequency",
"span": {
"start": 32,
"end": 36,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"type": "Ident",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"value": "khz",
"raw": "kHz"
}
}
],
"important": null
}
]
}
}
]
}