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

1010 lines
29 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 546,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 109,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 0,
"end": 15,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 1,
"end": 15,
"ctxt": 0
},
"value": "removed-214123",
"raw": "removed-214123"
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 16,
"end": 109,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 22,
"end": 37,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 22,
"end": 31,
"ctxt": 0
},
"value": "flex-wrap",
"raw": "flex-wrap"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 33,
"end": 37,
"ctxt": 0
},
"value": "wrap",
"raw": "wrap"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 43,
"end": 78,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 51,
"end": 78,
"ctxt": 0
},
"value": "__styled-jsx-placeholder__0",
"raw": "__styled-jsx-placeholder__0"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 84,
"end": 106,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 84,
"end": 94,
"ctxt": 0
},
"value": "box-sizing",
"raw": "box-sizing"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 96,
"end": 106,
"ctxt": 0
},
"value": "border-box",
"raw": "border-box"
}
],
"important": null
}
]
}
},
{
"type": "StyleRule",
"span": {
"start": 111,
"end": 286,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 111,
"end": 158,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 111,
"end": 158,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 111,
"end": 126,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 111,
"end": 126,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 112,
"end": 126,
"ctxt": 0
},
"value": "removed-214123",
"raw": "removed-214123"
}
}
]
},
{
"type": "Combinator",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 127,
"end": 158,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoSelector",
"span": {
"start": 127,
"end": 158,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 128,
"end": 134,
"ctxt": 0
},
"value": "global",
"raw": "global"
},
"args": {
"type": "Tokens",
"span": {
"start": 135,
"end": 157,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 135,
"end": 136,
"ctxt": 0
},
"token": {
"Delim": {
"value": ">"
}
}
},
{
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 138,
"end": 157,
"ctxt": 0
},
"token": {
"Ident": {
"value": "removed-214123-item",
"raw": "removed-214123-item"
}
}
}
]
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 159,
"end": 286,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 165,
"end": 201,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 165,
"end": 172,
"ctxt": 0
},
"value": "padding",
"raw": "padding"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 174,
"end": 201,
"ctxt": 0
},
"value": "__styled-jsx-placeholder__1",
"raw": "__styled-jsx-placeholder__1"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 207,
"end": 219,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 207,
"end": 216,
"ctxt": 0
},
"value": "flex-grow",
"raw": "flex-grow"
},
"value": [
{
"type": "Number",
"span": {
"start": 218,
"end": 219,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 225,
"end": 264,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 225,
"end": 235,
"ctxt": 0
},
"value": "flex-basis",
"raw": "flex-basis"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 236,
"end": 265,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 237,
"end": 264,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__styled-jsx-placeholder__2",
"raw": "__styled-jsx-placeholder__2"
}
}
},
{
"span": {
"start": 264,
"end": 265,
"ctxt": 0
},
"token": {
"Delim": {
"value": "%"
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 271,
"end": 283,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 271,
"end": 280,
"ctxt": 0
},
"value": "min-width",
"raw": "min-width"
},
"value": [
{
"type": "Number",
"span": {
"start": 282,
"end": 283,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"important": null
}
]
}
},
{
"type": "MediaRule",
"span": {
"start": 288,
"end": 415,
"ctxt": 0
},
"query": {
"type": "Identifier",
"span": {
"start": 295,
"end": 301,
"ctxt": 0
},
"value": "screen",
"raw": "screen"
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 308,
"end": 413,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 308,
"end": 355,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 308,
"end": 355,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 308,
"end": 323,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 308,
"end": 323,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 309,
"end": 323,
"ctxt": 0
},
"value": "removed-214123",
"raw": "removed-214123"
}
}
]
},
{
"type": "Combinator",
"span": {
"start": 323,
"end": 324,
"ctxt": 0
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 324,
"end": 355,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoSelector",
"span": {
"start": 324,
"end": 355,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 325,
"end": 331,
"ctxt": 0
},
"value": "global",
"raw": "global"
},
"args": {
"type": "Tokens",
"span": {
"start": 332,
"end": 354,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 332,
"end": 333,
"ctxt": 0
},
"token": {
"Delim": {
"value": ">"
}
}
},
{
"span": {
"start": 333,
"end": 334,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 334,
"end": 335,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 335,
"end": 354,
"ctxt": 0
},
"token": {
"Ident": {
"value": "removed-214123-item",
"raw": "removed-214123-item"
}
}
}
]
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 356,
"end": 413,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 366,
"end": 405,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 366,
"end": 376,
"ctxt": 0
},
"value": "flex-basis",
"raw": "flex-basis"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 377,
"end": 406,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 377,
"end": 378,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 378,
"end": 405,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__styled-jsx-placeholder__3",
"raw": "__styled-jsx-placeholder__3"
}
}
},
{
"span": {
"start": 405,
"end": 406,
"ctxt": 0
},
"token": {
"Delim": {
"value": "%"
}
}
}
]
}
],
"important": null
}
]
}
}
]
},
{
"type": "MediaRule",
"span": {
"start": 417,
"end": 546,
"ctxt": 0
},
"query": {
"type": "Identifier",
"span": {
"start": 424,
"end": 430,
"ctxt": 0
},
"value": "screen",
"raw": "screen"
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 437,
"end": 542,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 437,
"end": 484,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 437,
"end": 484,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 437,
"end": 452,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 437,
"end": 452,
"ctxt": 0
},
"text": {
"type": "Identifier",
"span": {
"start": 438,
"end": 452,
"ctxt": 0
},
"value": "removed-214123",
"raw": "removed-214123"
}
}
]
},
{
"type": "Combinator",
"span": {
"start": 452,
"end": 453,
"ctxt": 0
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 453,
"end": 484,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoSelector",
"span": {
"start": 453,
"end": 484,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Identifier",
"span": {
"start": 454,
"end": 460,
"ctxt": 0
},
"value": "global",
"raw": "global"
},
"args": {
"type": "Tokens",
"span": {
"start": 461,
"end": 483,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 461,
"end": 462,
"ctxt": 0
},
"token": {
"Delim": {
"value": ">"
}
}
},
{
"span": {
"start": 462,
"end": 463,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 463,
"end": 464,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 464,
"end": 483,
"ctxt": 0
},
"token": {
"Ident": {
"value": "removed-214123-item",
"raw": "removed-214123-item"
}
}
}
]
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 485,
"end": 542,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 495,
"end": 534,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 495,
"end": 505,
"ctxt": 0
},
"value": "flex-basis",
"raw": "flex-basis"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 506,
"end": 535,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 506,
"end": 507,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 507,
"end": 534,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__styled-jsx-placeholder__4",
"raw": "__styled-jsx-placeholder__4"
}
}
},
{
"span": {
"start": 534,
"end": 535,
"ctxt": 0
},
"token": {
"Delim": {
"value": "%"
}
}
}
]
}
],
"important": null
}
]
}
}
]
}
]
}