swc/crates/swc_css_parser/tests/recovery/vercel/001/output.json

740 lines
23 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 307,
"ctxt": 0
},
"rules": [
{
"type": "AtRule",
"span": {
"start": 1,
"end": 306,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 8,
"end": 26,
"ctxt": 0
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 8,
"end": 26,
"ctxt": 0
},
"modifier": null,
"mediaType": null,
"keyword": null,
"condition": {
"type": "MediaCondition",
"span": {
"start": 8,
"end": 26,
"ctxt": 0
},
"conditions": [
{
"type": "MediaFeaturePlain",
"span": {
"start": 8,
"end": 26,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 9,
"end": 18,
"ctxt": 0
},
"value": "min-width",
"raw": "min-width"
},
"value": {
"type": "Length",
"span": {
"start": 20,
"end": 25,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 20,
"end": 23,
"ctxt": 0
},
"value": 935.0,
"raw": "935"
},
"unit": {
"type": "Ident",
"span": {
"start": 23,
"end": 25,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
}
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 27,
"end": 306,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "QualifiedRule",
"span": {
"start": 33,
"end": 86,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 33,
"end": 53,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 33,
"end": 53,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 33,
"end": 53,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 33,
"end": 39,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 34,
"end": 39,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoClassSelector",
"span": {
"start": 39,
"end": 53,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 40,
"end": 49,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"children": [
{
"type": "AnPlusBNotation",
"span": {
"start": 50,
"end": 52,
"ctxt": 0
},
"a": 4,
"aRaw": "4",
"b": null,
"bRaw": null
}
]
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 54,
"end": 86,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 64,
"end": 79,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 64,
"end": 76,
"ctxt": 0
},
"value": "margin-right",
"raw": "margin-right"
},
"value": [
{
"type": "Integer",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": 0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 91,
"end": 141,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 91,
"end": 108,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 91,
"end": 108,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 91,
"end": 108,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 91,
"end": 97,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 92,
"end": 97,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoClassSelector",
"span": {
"start": 97,
"end": 108,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 98,
"end": 108,
"ctxt": 0
},
"value": "last-child",
"raw": "last-child"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 109,
"end": 141,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 119,
"end": 134,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 119,
"end": 131,
"ctxt": 0
},
"value": "margin-right",
"raw": "margin-right"
},
"value": [
{
"type": "Integer",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"value": 0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 146,
"end": 272,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 146,
"end": 240,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 146,
"end": 164,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 146,
"end": 164,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 146,
"end": 152,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 147,
"end": 152,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoClassSelector",
"span": {
"start": 152,
"end": 164,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 153,
"end": 164,
"ctxt": 0
},
"value": "first-child",
"raw": "first-child"
},
"children": null
}
]
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 170,
"end": 189,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 170,
"end": 189,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 170,
"end": 176,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 171,
"end": 176,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoClassSelector",
"span": {
"start": 176,
"end": 189,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 177,
"end": 186,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"children": [
{
"type": "AnPlusBNotation",
"span": {
"start": 187,
"end": 188,
"ctxt": 0
},
"a": null,
"aRaw": null,
"b": 5,
"bRaw": "5"
}
]
}
]
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 195,
"end": 214,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 195,
"end": 214,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 195,
"end": 201,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 196,
"end": 201,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoClassSelector",
"span": {
"start": 201,
"end": 214,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 202,
"end": 211,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"children": [
{
"type": "AnPlusBNotation",
"span": {
"start": 212,
"end": 213,
"ctxt": 0
},
"a": null,
"aRaw": null,
"b": 9,
"bRaw": "9"
}
]
}
]
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 220,
"end": 240,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 220,
"end": 240,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 220,
"end": 226,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 221,
"end": 226,
"ctxt": 0
},
"value": "video",
"raw": "video"
}
},
{
"type": "PseudoClassSelector",
"span": {
"start": 226,
"end": 240,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 227,
"end": 236,
"ctxt": 0
},
"value": "nth-child",
"raw": "nth-child"
},
"children": [
{
"type": "AnPlusBNotation",
"span": {
"start": 237,
"end": 239,
"ctxt": 0
},
"a": null,
"aRaw": null,
"b": 13,
"bRaw": "13"
}
]
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 241,
"end": 272,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 251,
"end": 265,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 251,
"end": 262,
"ctxt": 0
},
"value": "margin-left",
"raw": "margin-left"
},
"value": [
{
"type": "Integer",
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"value": 0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "Tokens",
"span": {
"start": 277,
"end": 305,
"ctxt": 0
},
"tokens": [
{
"type": "PreservedToken",
"span": {
"start": 277,
"end": 304,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__styled-jsx-placeholder__7",
"raw": "__styled-jsx-placeholder__7"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 304,
"end": 305,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
}
]
}
}
]
}