swc/css/parser/tests/errors/number/minus-dot/output.json
2021-10-17 23:24:28 +09:00

134 lines
3.0 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 17,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 2,
"end": 17,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 4,
"end": 13,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 4,
"end": 9,
"ctxt": 0
},
"value": "width",
"raw": "width"
},
"values": [
{
"type": "Tokens",
"span": {
"start": 10,
"end": 14,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 10,
"end": 11,
"ctxt": 0
},
"token": "WhiteSpace"
},
{
"span": {
"start": 11,
"end": 13,
"ctxt": 0
},
"token": {
"Num": {
"value": 0.0
}
}
},
{
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
}
]
}
],
"important": null
}
]
}
}
]
}