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": 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": "{",
"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
}
]
}
}
]
}