swc/crates/swc_css_parser/tests/recovery/vercel/001/output.json
2021-11-12 19:37:05 +09:00

747 lines
22 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 306,
"ctxt": 0
},
"rules": [
{
"type": "MediaRule",
"span": {
"start": 0,
"end": 305,
"ctxt": 0
},
"query": {
"type": "Declaration",
"span": {
"start": 8,
"end": 25,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 8,
"end": 17,
"ctxt": 0
},
"value": "min-width",
"raw": "min-width"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 19,
"end": 24,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 19,
"end": 22,
"ctxt": 0
},
"value": 935.0,
"raw": "935"
},
"unit": {
"span": {
"start": 22,
"end": 24,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
}
],
"important": null
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 32,
"end": 85,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 32,
"end": 52,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 32,
"end": 52,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 32,
"end": 52,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 32,
"end": 38,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 33,
"end": 38,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 38,
"end": 52,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"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": 51,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 4.0,
"raw_value": "4",
"unit": "n",
"raw_unit": "n"
}
}
}
]
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 53,
"end": 85,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 63,
"end": 78,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 63,
"end": 75,
"ctxt": 0
},
"value": "margin-right",
"raw": "margin-right"
},
"value": [
{
"type": "Number",
"span": {
"start": 77,
"end": 78,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "StyleRule",
"span": {
"start": 90,
"end": 140,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 90,
"end": 107,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 90,
"end": 107,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 90,
"end": 107,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 90,
"end": 96,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 91,
"end": 96,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 96,
"end": 107,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 97,
"end": 107,
"ctxt": 0
},
"value": "last-child",
"raw": "last-child"
},
"args": {
"type": "Tokens",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tokens": []
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 108,
"end": 140,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 118,
"end": 133,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 118,
"end": 130,
"ctxt": 0
},
"value": "margin-right",
"raw": "margin-right"
},
"value": [
{
"type": "Number",
"span": {
"start": 132,
"end": 133,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "StyleRule",
"span": {
"start": 145,
"end": 271,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 145,
"end": 239,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 145,
"end": 163,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 145,
"end": 163,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 145,
"end": 151,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 146,
"end": 151,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 151,
"end": 163,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 152,
"end": 163,
"ctxt": 0
},
"value": "first-child",
"raw": "first-child"
},
"args": {
"type": "Tokens",
"span": {
"start": 0,
"end": 0,
"ctxt": 0
},
"tokens": []
}
}
]
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 169,
"end": 188,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 169,
"end": 188,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 169,
"end": 175,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 170,
"end": 175,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 175,
"end": 188,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 176,
"end": 185,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"args": {
"type": "Tokens",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"token": {
"Num": {
"value": 5.0,
"raw": "5"
}
}
}
]
}
}
]
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 194,
"end": 213,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 194,
"end": 213,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 194,
"end": 200,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 195,
"end": 200,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 200,
"end": 213,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 201,
"end": 210,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"args": {
"type": "Tokens",
"span": {
"start": 211,
"end": 212,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 211,
"end": 212,
"ctxt": 0
},
"token": {
"Num": {
"value": 9.0,
"raw": "9"
}
}
}
]
}
}
]
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 219,
"end": 239,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 219,
"end": 239,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 219,
"end": 225,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 220,
"end": 225,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoSelector",
"span": {
"start": 225,
"end": 239,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 226,
"end": 235,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"args": {
"type": "Tokens",
"span": {
"start": 236,
"end": 238,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 236,
"end": 238,
"ctxt": 0
},
"token": {
"Num": {
"value": 13.0,
"raw": "13"
}
}
}
]
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 240,
"end": 271,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 250,
"end": 264,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 250,
"end": 261,
"ctxt": 0
},
"value": "margin-left",
"raw": "margin-left"
},
"value": [
{
"type": "Number",
"span": {
"start": 263,
"end": 264,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "Tokens",
"span": {
"start": 276,
"end": 304,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 276,
"end": 303,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__styled-jsx-placeholder__7",
"raw": "__styled-jsx-placeholder__7"
}
}
},
{
"span": {
"start": 303,
"end": 304,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
}
]
}
]
}