swc/crates/swc_css_parser/tests/fixture/value/frequency/output.json

185 lines
4.4 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 39,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 38,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 4,
"end": 38,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 10,
"end": 19,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 10,
"end": 14,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Frequency",
"span": {
"start": 16,
"end": 19,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"type": "Ident",
"span": {
"start": 17,
"end": 19,
"ctxt": 0
},
"value": "Hz",
"raw": "Hz"
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 25,
"end": 35,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 25,
"end": 29,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Frequency",
"span": {
"start": 31,
"end": 35,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"type": "Ident",
"span": {
"start": 32,
"end": 35,
"ctxt": 0
},
"value": "kHz",
"raw": "kHz"
}
}
],
"important": null
}
]
}
}
]
}