swc/css/parser/tests/fixture/vercel/001/output.json
2021-10-07 20:32:54 +09:00

212 lines
5.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 88,
"ctxt": 0
},
"rules": [
{
"type": "MediaRule",
"span": {
"start": 0,
"end": 87,
"ctxt": 0
},
"query": {
"type": "Property",
"span": {
"start": 8,
"end": 25,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 8,
"end": 17,
"ctxt": 0
},
"value": "min-width",
"raw": "min-width"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 19,
"end": 24,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"value": 935.0
},
"unit": {
"span": {
"start": 22,
"end": 24,
"ctxt": 0
},
"kind": null
}
}
],
"important": null
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 32,
"end": 85,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 32,
"end": 52,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 32,
"end": 52,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 32,
"end": 38,
"ctxt": 0
},
"text": {
"type": "Text",
"span": {
"start": 33,
"end": 38,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 38,
"end": 52,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Text",
"span": {
"start": 39,
"end": 48,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"args": {
"type": "Tokens",
"span": {
"start": 49,
"end": 51,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"token": {
"Num": {
"value": 4.0
}
}
},
{
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"token": {
"Ident": {
"value": "n",
"raw": "n"
}
}
}
]
}
}
]
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 53,
"end": 85,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 63,
"end": 78,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 63,
"end": 75,
"ctxt": 0
},
"value": "margin-right",
"raw": "margin-right"
},
"values": [
{
"type": "Number",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"value": 0.0
}
],
"important": null
}
]
}
}
]
}
]
}