Files
quininerandGitHub dfaa5d5ddf refactor(ast): Introduce flexible serialization encoding for AST (#11100)
**Description:**

Following our previous discussion, I am trying to introduce a
self-describing serialization encoding for ast to replace
https://github.com/swc-project/swc/pull/11069 .

Since `serde` is currently used for json serialization, it is hard to
modify serde to support both json and binary encodings (due to the
`untagged` and `flatten` attr). So I made our own `Encode` and `Decode`
proc macro, which also facilitate unknown variant support.

<img width="1804" height="1776" alt="benchmark"
src="https://github.com/user-attachments/assets/73e294cd-be88-43a0-a390-fdd24c8f464f"
/>

I've done some simple benchmarks with a modified swc ast, and I believe
we don't have an unacceptable performance loss relative to `rkyv`.
I'm using `cbor4ii` here, which I developed, so I'd prefer it if there's
no performance difference. but it's easy to migrate to `bincode` or
other scheme.

This also introduces an `unknown` feature for `ecma_ast` crate, which
should only be enabled by the wasm plugin to ensure that old plugins can
decode new AST.
2025-10-31 18:06:00 +09:00

4719 lines
131 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 1664
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 24
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 5
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 5
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 5
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1,
"end": 5
},
"text": {
"type": "Ident",
"span": {
"start": 2,
"end": 5
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 6,
"end": 24
},
"name": {
"type": "PreservedToken",
"span": {
"start": 6,
"end": 7
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 21
},
"name": {
"type": "Ident",
"span": {
"start": 8,
"end": 15
},
"value": "display",
"raw": "display"
},
"value": [
{
"type": "Ident",
"span": {
"start": 17,
"end": 21
},
"value": "grid",
"raw": "grid"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 26,
"end": 130
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 26,
"end": 30
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 26,
"end": 30
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 26,
"end": 30
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 26,
"end": 30
},
"text": {
"type": "Ident",
"span": {
"start": 27,
"end": 30
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 31,
"end": 130
},
"name": {
"type": "PreservedToken",
"span": {
"start": 31,
"end": 32
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 37,
"end": 50
},
"name": {
"type": "Ident",
"span": {
"start": 37,
"end": 44
},
"value": "display",
"raw": "display"
},
"value": [
{
"type": "Ident",
"span": {
"start": 46,
"end": 50
},
"value": "grid",
"raw": "grid"
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 57,
"end": 128
},
"name": {
"type": "Ident",
"span": {
"start": 58,
"end": 63
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 64,
"end": 88
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 64,
"end": 88
},
"modifier": null,
"mediaType": null,
"keyword": null,
"condition": {
"type": "MediaCondition",
"span": {
"start": 64,
"end": 88
},
"conditions": [
{
"type": "MediaFeaturePlain",
"span": {
"start": 64,
"end": 88
},
"name": {
"type": "Ident",
"span": {
"start": 65,
"end": 76
},
"value": "orientation",
"raw": "orientation"
},
"value": {
"type": "Ident",
"span": {
"start": 78,
"end": 87
},
"value": "landscape",
"raw": "landscape"
}
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 89,
"end": 128
},
"name": {
"type": "PreservedToken",
"span": {
"start": 89,
"end": 90
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 99,
"end": 121
},
"name": {
"type": "Ident",
"span": {
"start": 99,
"end": 113
},
"value": "grid-auto-flow",
"raw": "grid-auto-flow"
},
"value": [
{
"type": "Ident",
"span": {
"start": 115,
"end": 121
},
"value": "column",
"raw": "column"
}
],
"important": null
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 132,
"end": 328
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 132,
"end": 136
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 132,
"end": 136
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 132,
"end": 136
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 132,
"end": 136
},
"text": {
"type": "Ident",
"span": {
"start": 133,
"end": 136
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 137,
"end": 328
},
"name": {
"type": "PreservedToken",
"span": {
"start": 137,
"end": 138
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 143,
"end": 156
},
"name": {
"type": "Ident",
"span": {
"start": 143,
"end": 150
},
"value": "display",
"raw": "display"
},
"value": [
{
"type": "Ident",
"span": {
"start": 152,
"end": 156
},
"value": "grid",
"raw": "grid"
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 163,
"end": 326
},
"name": {
"type": "Ident",
"span": {
"start": 164,
"end": 169
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 170,
"end": 194
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 170,
"end": 194
},
"modifier": null,
"mediaType": null,
"keyword": null,
"condition": {
"type": "MediaCondition",
"span": {
"start": 170,
"end": 194
},
"conditions": [
{
"type": "MediaFeaturePlain",
"span": {
"start": 170,
"end": 194
},
"name": {
"type": "Ident",
"span": {
"start": 171,
"end": 182
},
"value": "orientation",
"raw": "orientation"
},
"value": {
"type": "Ident",
"span": {
"start": 184,
"end": 193
},
"value": "landscape",
"raw": "landscape"
}
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 195,
"end": 326
},
"name": {
"type": "PreservedToken",
"span": {
"start": 195,
"end": 196
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 205,
"end": 227
},
"name": {
"type": "Ident",
"span": {
"start": 205,
"end": 219
},
"value": "grid-auto-flow",
"raw": "grid-auto-flow"
},
"value": [
{
"type": "Ident",
"span": {
"start": 221,
"end": 227
},
"value": "column",
"raw": "column"
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 238,
"end": 320
},
"name": {
"type": "Ident",
"span": {
"start": 239,
"end": 244
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 245,
"end": 271
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 245,
"end": 271
},
"modifier": null,
"mediaType": null,
"keyword": null,
"condition": {
"type": "MediaCondition",
"span": {
"start": 245,
"end": 271
},
"conditions": [
{
"type": "MediaFeatureRange",
"span": {
"start": 245,
"end": 271
},
"left": {
"type": "Ident",
"span": {
"start": 246,
"end": 261
},
"value": "min-inline-size",
"raw": "min-inline-size"
},
"comparison": ">",
"right": {
"type": "Length",
"span": {
"start": 264,
"end": 270
},
"value": {
"type": "Number",
"span": {
"start": 264,
"end": 268
},
"value": 1024.0,
"raw": "1024"
},
"unit": {
"type": "Ident",
"span": {
"start": 268,
"end": 270
},
"value": "px",
"raw": "px"
}
}
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 272,
"end": 320
},
"name": {
"type": "PreservedToken",
"span": {
"start": 272,
"end": 273
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 286,
"end": 309
},
"name": {
"type": "Ident",
"span": {
"start": 286,
"end": 301
},
"value": "max-inline-size",
"raw": "max-inline-size"
},
"value": [
{
"type": "Length",
"span": {
"start": 303,
"end": 309
},
"value": {
"type": "Number",
"span": {
"start": 303,
"end": 307
},
"value": 1024.0,
"raw": "1024"
},
"unit": {
"type": "Ident",
"span": {
"start": 307,
"end": 309
},
"value": "px",
"raw": "px"
}
}
],
"important": null
}
]
}
}
]
}
}
]
}
},
{
"type": "AtRule",
"span": {
"start": 330,
"end": 411
},
"name": {
"type": "Ident",
"span": {
"start": 331,
"end": 336
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 337,
"end": 361
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 337,
"end": 361
},
"modifier": null,
"mediaType": null,
"keyword": null,
"condition": {
"type": "MediaCondition",
"span": {
"start": 337,
"end": 361
},
"conditions": [
{
"type": "MediaFeaturePlain",
"span": {
"start": 337,
"end": 361
},
"name": {
"type": "Ident",
"span": {
"start": 338,
"end": 349
},
"value": "orientation",
"raw": "orientation"
},
"value": {
"type": "Ident",
"span": {
"start": 351,
"end": 360
},
"value": "landscape",
"raw": "landscape"
}
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 362,
"end": 411
},
"name": {
"type": "PreservedToken",
"span": {
"start": 362,
"end": 363
},
"token": "LBrace"
},
"value": [
{
"type": "QualifiedRule",
"span": {
"start": 368,
"end": 409
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 368,
"end": 369
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 368,
"end": 369
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 368,
"end": 369
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 368,
"end": 369
}
},
"typeSelector": null,
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 370,
"end": 409
},
"name": {
"type": "PreservedToken",
"span": {
"start": 370,
"end": 371
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 380,
"end": 402
},
"name": {
"type": "Ident",
"span": {
"start": 380,
"end": 394
},
"value": "grid-auto-flow",
"raw": "grid-auto-flow"
},
"value": [
{
"type": "Ident",
"span": {
"start": 396,
"end": 402
},
"value": "column",
"raw": "column"
}
],
"important": null
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 413,
"end": 512
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 413,
"end": 417
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 413,
"end": 417
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 413,
"end": 417
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 413,
"end": 417
},
"text": {
"type": "Ident",
"span": {
"start": 414,
"end": 417
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 418,
"end": 512
},
"name": {
"type": "PreservedToken",
"span": {
"start": 418,
"end": 419
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 424,
"end": 434
},
"name": {
"type": "Ident",
"span": {
"start": 424,
"end": 429
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 431,
"end": 434
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 441,
"end": 510
},
"name": {
"type": "Ident",
"span": {
"start": 442,
"end": 447
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 448,
"end": 466
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 448,
"end": 466
},
"modifier": null,
"mediaType": null,
"keyword": null,
"condition": {
"type": "MediaCondition",
"span": {
"start": 448,
"end": 466
},
"conditions": [
{
"type": "MediaFeaturePlain",
"span": {
"start": 448,
"end": 466
},
"name": {
"type": "Ident",
"span": {
"start": 449,
"end": 458
},
"value": "min-width",
"raw": "min-width"
},
"value": {
"type": "Length",
"span": {
"start": 460,
"end": 465
},
"value": {
"type": "Number",
"span": {
"start": 460,
"end": 463
},
"value": 480.0,
"raw": "480"
},
"unit": {
"type": "Ident",
"span": {
"start": 463,
"end": 465
},
"value": "px",
"raw": "px"
}
}
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 467,
"end": 510
},
"name": {
"type": "PreservedToken",
"span": {
"start": 467,
"end": 468
},
"token": "LBrace"
},
"value": [
{
"type": "QualifiedRule",
"span": {
"start": 477,
"end": 504
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 477,
"end": 487
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 477,
"end": 481
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 477,
"end": 481
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 477,
"end": 478
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 477,
"end": 478
}
},
"typeSelector": null,
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 478,
"end": 479
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 479,
"end": 481
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 479,
"end": 481
},
"name": {
"type": "WqName",
"span": {
"start": 479,
"end": 481
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 479,
"end": 481
},
"value": "h1",
"raw": "h1"
}
}
},
"subclassSelectors": []
}
]
}
},
{
"type": "RelativeSelector",
"span": {
"start": 483,
"end": 487
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 483,
"end": 487
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 483,
"end": 484
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 483,
"end": 484
}
},
"typeSelector": null,
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 484,
"end": 485
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 485,
"end": 487
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 485,
"end": 487
},
"name": {
"type": "WqName",
"span": {
"start": 485,
"end": 487
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 485,
"end": 487
},
"value": "h2",
"raw": "h2"
}
}
},
"subclassSelectors": []
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 488,
"end": 504
},
"name": {
"type": "PreservedToken",
"span": {
"start": 488,
"end": 489
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 490,
"end": 501
},
"name": {
"type": "Ident",
"span": {
"start": 490,
"end": 495
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 497,
"end": 501
},
"value": "blue",
"raw": "blue"
}
],
"important": null
}
]
}
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 514,
"end": 625
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 514,
"end": 520
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 514,
"end": 520
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 514,
"end": 520
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 514,
"end": 520
},
"text": {
"type": "Ident",
"span": {
"start": 515,
"end": 520
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 521,
"end": 625
},
"name": {
"type": "PreservedToken",
"span": {
"start": 521,
"end": 522
},
"token": "LBrace"
},
"value": [
{
"type": "AtRule",
"span": {
"start": 527,
"end": 623
},
"name": {
"type": "Ident",
"span": {
"start": 528,
"end": 536
},
"value": "supports",
"raw": "supports"
},
"prelude": {
"type": "SupportsCondition",
"span": {
"start": 537,
"end": 556
},
"conditions": [
{
"type": "SupportsNot",
"span": {
"start": 537,
"end": 556
},
"keyword": {
"type": "Ident",
"span": {
"start": 537,
"end": 540
},
"value": "not",
"raw": "not"
},
"condition": {
"type": "Declaration",
"span": {
"start": 542,
"end": 555
},
"name": {
"type": "Ident",
"span": {
"start": 542,
"end": 549
},
"value": "display",
"raw": "display"
},
"value": [
{
"type": "Ident",
"span": {
"start": 551,
"end": 555
},
"value": "grid",
"raw": "grid"
}
],
"important": null
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 557,
"end": 623
},
"name": {
"type": "PreservedToken",
"span": {
"start": 557,
"end": 558
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 567,
"end": 579
},
"name": {
"type": "Ident",
"span": {
"start": 567,
"end": 572
},
"value": "float",
"raw": "float"
},
"value": [
{
"type": "Ident",
"span": {
"start": 574,
"end": 579
},
"value": "right",
"raw": "right"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 594,
"end": 617
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 594,
"end": 602
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 594,
"end": 602
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 594,
"end": 602
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 594,
"end": 595
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 594,
"end": 595
}
},
"typeSelector": null,
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 595,
"end": 596
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 596,
"end": 602
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 596,
"end": 602
},
"text": {
"type": "Ident",
"span": {
"start": 597,
"end": 602
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 603,
"end": 617
},
"name": {
"type": "PreservedToken",
"span": {
"start": 603,
"end": 604
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 605,
"end": 616
},
"name": {
"type": "Ident",
"span": {
"start": 605,
"end": 610
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 612,
"end": 615
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 627,
"end": 756
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 627,
"end": 633
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 627,
"end": 633
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 627,
"end": 633
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 627,
"end": 633
},
"text": {
"type": "Ident",
"span": {
"start": 628,
"end": 633
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 634,
"end": 756
},
"name": {
"type": "PreservedToken",
"span": {
"start": 634,
"end": 635
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 640,
"end": 651
},
"name": {
"type": "Ident",
"span": {
"start": 640,
"end": 645
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 647,
"end": 651
},
"value": "blue",
"raw": "blue"
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 658,
"end": 754
},
"name": {
"type": "Ident",
"span": {
"start": 659,
"end": 667
},
"value": "supports",
"raw": "supports"
},
"prelude": {
"type": "SupportsCondition",
"span": {
"start": 668,
"end": 687
},
"conditions": [
{
"type": "SupportsNot",
"span": {
"start": 668,
"end": 687
},
"keyword": {
"type": "Ident",
"span": {
"start": 668,
"end": 671
},
"value": "not",
"raw": "not"
},
"condition": {
"type": "Declaration",
"span": {
"start": 673,
"end": 686
},
"name": {
"type": "Ident",
"span": {
"start": 673,
"end": 680
},
"value": "display",
"raw": "display"
},
"value": [
{
"type": "Ident",
"span": {
"start": 682,
"end": 686
},
"value": "grid",
"raw": "grid"
}
],
"important": null
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 688,
"end": 754
},
"name": {
"type": "PreservedToken",
"span": {
"start": 688,
"end": 689
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 698,
"end": 710
},
"name": {
"type": "Ident",
"span": {
"start": 698,
"end": 703
},
"value": "float",
"raw": "float"
},
"value": [
{
"type": "Ident",
"span": {
"start": 705,
"end": 710
},
"value": "right",
"raw": "right"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 725,
"end": 748
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 725,
"end": 733
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 725,
"end": 733
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 725,
"end": 733
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 725,
"end": 726
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 725,
"end": 726
}
},
"typeSelector": null,
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 726,
"end": 727
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 727,
"end": 733
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 727,
"end": 733
},
"text": {
"type": "Ident",
"span": {
"start": 728,
"end": 733
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 734,
"end": 748
},
"name": {
"type": "PreservedToken",
"span": {
"start": 734,
"end": 735
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 736,
"end": 747
},
"name": {
"type": "Ident",
"span": {
"start": 736,
"end": 741
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 743,
"end": 746
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 758,
"end": 926
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 758,
"end": 764
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 758,
"end": 764
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 758,
"end": 764
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 758,
"end": 764
},
"text": {
"type": "Ident",
"span": {
"start": 759,
"end": 764
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 765,
"end": 926
},
"name": {
"type": "PreservedToken",
"span": {
"start": 765,
"end": 766
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 771,
"end": 782
},
"name": {
"type": "Ident",
"span": {
"start": 771,
"end": 776
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 778,
"end": 782
},
"value": "blue",
"raw": "blue"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 789,
"end": 822
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 789,
"end": 794
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 789,
"end": 794
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 789,
"end": 794
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 789,
"end": 794
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 789,
"end": 790
}
},
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 790,
"end": 794
},
"text": {
"type": "Ident",
"span": {
"start": 791,
"end": 794
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 795,
"end": 822
},
"name": {
"type": "PreservedToken",
"span": {
"start": 795,
"end": 796
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 803,
"end": 815
},
"name": {
"type": "Ident",
"span": {
"start": 803,
"end": 808
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 810,
"end": 815
},
"value": "green",
"raw": "green"
}
],
"important": null
}
]
}
},
{
"type": "AtRule",
"span": {
"start": 828,
"end": 924
},
"name": {
"type": "Ident",
"span": {
"start": 829,
"end": 837
},
"value": "supports",
"raw": "supports"
},
"prelude": {
"type": "SupportsCondition",
"span": {
"start": 838,
"end": 857
},
"conditions": [
{
"type": "SupportsNot",
"span": {
"start": 838,
"end": 857
},
"keyword": {
"type": "Ident",
"span": {
"start": 838,
"end": 841
},
"value": "not",
"raw": "not"
},
"condition": {
"type": "Declaration",
"span": {
"start": 843,
"end": 856
},
"name": {
"type": "Ident",
"span": {
"start": 843,
"end": 850
},
"value": "display",
"raw": "display"
},
"value": [
{
"type": "Ident",
"span": {
"start": 852,
"end": 856
},
"value": "grid",
"raw": "grid"
}
],
"important": null
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 858,
"end": 924
},
"name": {
"type": "PreservedToken",
"span": {
"start": 858,
"end": 859
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 868,
"end": 880
},
"name": {
"type": "Ident",
"span": {
"start": 868,
"end": 873
},
"value": "float",
"raw": "float"
},
"value": [
{
"type": "Ident",
"span": {
"start": 875,
"end": 880
},
"value": "right",
"raw": "right"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 895,
"end": 918
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 895,
"end": 903
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 895,
"end": 903
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 895,
"end": 903
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 895,
"end": 896
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 895,
"end": 896
}
},
"typeSelector": null,
"subclassSelectors": []
},
{
"type": "Combinator",
"span": {
"start": 896,
"end": 897
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 897,
"end": 903
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 897,
"end": 903
},
"text": {
"type": "Ident",
"span": {
"start": 898,
"end": 903
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 904,
"end": 918
},
"name": {
"type": "PreservedToken",
"span": {
"start": 904,
"end": 905
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 906,
"end": 917
},
"name": {
"type": "Ident",
"span": {
"start": 906,
"end": 911
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 913,
"end": 916
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 968,
"end": 1071
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 968,
"end": 974
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 968,
"end": 974
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 968,
"end": 974
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 968,
"end": 974
},
"text": {
"type": "Ident",
"span": {
"start": 969,
"end": 974
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 975,
"end": 1071
},
"name": {
"type": "PreservedToken",
"span": {
"start": 975,
"end": 976
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 981,
"end": 991
},
"name": {
"type": "Ident",
"span": {
"start": 981,
"end": 986
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 988,
"end": 991
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 998,
"end": 1069
},
"name": {
"type": "Ident",
"span": {
"start": 999,
"end": 1007
},
"value": "document",
"raw": "document"
},
"prelude": {
"type": "DocumentPrelude",
"span": {
"start": 1008,
"end": 1040
},
"matchingFunctions": [
{
"type": "Url",
"span": {
"start": 1008,
"end": 1039
},
"name": {
"type": "Ident",
"span": {
"start": 1008,
"end": 1011
},
"value": "url",
"raw": "url"
},
"value": {
"type": "String",
"span": {
"start": 1012,
"end": 1038
},
"value": "https://www.example.com/",
"raw": "\"https://www.example.com/\""
},
"modifiers": []
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1040,
"end": 1069
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1040,
"end": 1041
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1050,
"end": 1062
},
"name": {
"type": "Ident",
"span": {
"start": 1050,
"end": 1055
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1057,
"end": 1062
},
"value": "green",
"raw": "green"
}
],
"important": null
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1073,
"end": 1102
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1073,
"end": 1074
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1073,
"end": 1074
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1073,
"end": 1074
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1073,
"end": 1074
},
"name": {
"type": "WqName",
"span": {
"start": 1073,
"end": 1074
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1073,
"end": 1074
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1075,
"end": 1102
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1075,
"end": 1076
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1083,
"end": 1095
},
"name": {
"type": "Ident",
"span": {
"start": 1083,
"end": 1088
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1090,
"end": 1095
},
"value": "black",
"raw": "black"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1104,
"end": 1123
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1104,
"end": 1105
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1104,
"end": 1105
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1104,
"end": 1105
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1104,
"end": 1105
},
"name": {
"type": "WqName",
"span": {
"start": 1104,
"end": 1105
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1104,
"end": 1105
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1106,
"end": 1123
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1106,
"end": 1107
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1109,
"end": 1120
},
"name": {
"type": "Ident",
"span": {
"start": 1109,
"end": 1114
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1116,
"end": 1120
},
"value": "pink",
"raw": "pink"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1125,
"end": 1139
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1125,
"end": 1126
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1125,
"end": 1126
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1125,
"end": 1126
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1125,
"end": 1126
},
"name": {
"type": "WqName",
"span": {
"start": 1125,
"end": 1126
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1125,
"end": 1126
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1126,
"end": 1139
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1126,
"end": 1127
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1127,
"end": 1138
},
"name": {
"type": "Ident",
"span": {
"start": 1127,
"end": 1132
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1133,
"end": 1138
},
"value": "black",
"raw": "black"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1141,
"end": 1212
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1141,
"end": 1142
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1141,
"end": 1142
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1141,
"end": 1142
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1141,
"end": 1142
},
"name": {
"type": "WqName",
"span": {
"start": 1141,
"end": 1142
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1141,
"end": 1142
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1143,
"end": 1212
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1143,
"end": 1144
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1149,
"end": 1160
},
"name": {
"type": "Ident",
"span": {
"start": 1149,
"end": 1154
},
"value": "width",
"raw": "width"
},
"value": [
{
"type": "Length",
"span": {
"start": 1156,
"end": 1160
},
"value": {
"type": "Number",
"span": {
"start": 1156,
"end": 1158
},
"value": 10.0,
"raw": "10"
},
"unit": {
"type": "Ident",
"span": {
"start": 1158,
"end": 1160
},
"value": "px",
"raw": "px"
}
}
],
"important": null
},
{
"type": "AtRule",
"span": {
"start": 1166,
"end": 1210
},
"name": {
"type": "Ident",
"span": {
"start": 1167,
"end": 1172
},
"value": "mixin",
"raw": "mixin"
},
"prelude": {
"type": "ListOfComponentValues",
"span": {
"start": 1172,
"end": 1180
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 1172,
"end": 1173
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1173,
"end": 1179
},
"token": {
"Ident": {
"value": "mobile",
"raw": "mobile"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1179,
"end": 1180
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1180,
"end": 1210
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1180,
"end": 1181
},
"token": "LBrace"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1181,
"end": 1190
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1190,
"end": 1196
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1196,
"end": 1197
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1197,
"end": 1198
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1198,
"end": 1203
},
"token": {
"Dimension": {
"dimension": {
"value": 100.0,
"raw_value": "100",
"unit": "px",
"type": "integer",
"raw_unit": "px"
}
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1203,
"end": 1204
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1204,
"end": 1209
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1214,
"end": 1240
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1214,
"end": 1215
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1214,
"end": 1215
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1214,
"end": 1215
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1214,
"end": 1215
},
"name": {
"type": "WqName",
"span": {
"start": 1214,
"end": 1215
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1214,
"end": 1215
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1216,
"end": 1240
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1216,
"end": 1217
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1218,
"end": 1237
},
"name": {
"type": "Ident",
"span": {
"start": 1218,
"end": 1223
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1225,
"end": 1226
},
"value": "a",
"raw": "a"
},
{
"type": "Ident",
"span": {
"start": 1234,
"end": 1235
},
"value": "b",
"raw": "b"
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1242,
"end": 1265
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1242,
"end": 1243
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1242,
"end": 1243
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1242,
"end": 1243
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1242,
"end": 1243
},
"name": {
"type": "WqName",
"span": {
"start": 1242,
"end": 1243
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1242,
"end": 1243
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1244,
"end": 1265
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1244,
"end": 1245
},
"token": "LBrace"
},
"value": [
{
"type": "AtRule",
"span": {
"start": 1246,
"end": 1263
},
"name": {
"type": "Ident",
"span": {
"start": 1247,
"end": 1254
},
"value": "unknown",
"raw": "unknown"
},
"prelude": {
"type": "ListOfComponentValues",
"span": {
"start": 1254,
"end": 1262
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 1254,
"end": 1255
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1255,
"end": 1262
},
"token": {
"String": {
"value": "a.css",
"raw": "\"a.css\""
}
}
}
]
},
"block": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1267,
"end": 1288
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1267,
"end": 1268
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1267,
"end": 1268
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1267,
"end": 1268
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1267,
"end": 1268
},
"name": {
"type": "WqName",
"span": {
"start": 1267,
"end": 1268
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1267,
"end": 1268
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1269,
"end": 1288
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1269,
"end": 1270
},
"token": "LBrace"
},
"value": [
{
"type": "AtRule",
"span": {
"start": 1271,
"end": 1286
},
"name": {
"type": "Ident",
"span": {
"start": 1272,
"end": 1279
},
"value": "unknown",
"raw": "unknown"
},
"prelude": {
"type": "ListOfComponentValues",
"span": {
"start": 1279,
"end": 1284
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 1279,
"end": 1280
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1280,
"end": 1283
},
"token": {
"Ident": {
"value": "foo",
"raw": "foo"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1283,
"end": 1284
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1284,
"end": 1286
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1284,
"end": 1285
},
"token": "LBrace"
},
"value": []
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1290,
"end": 1298
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1290,
"end": 1291
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1290,
"end": 1291
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1290,
"end": 1291
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1290,
"end": 1291
},
"name": {
"type": "WqName",
"span": {
"start": 1290,
"end": 1291
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1290,
"end": 1291
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1296,
"end": 1298
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1296,
"end": 1297
},
"token": "LBrace"
},
"value": []
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1300,
"end": 1443
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1300,
"end": 1305
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1300,
"end": 1305
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1300,
"end": 1305
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1300,
"end": 1305
},
"name": {
"type": "Ident",
"span": {
"start": 1301,
"end": 1305
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1306,
"end": 1443
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1306,
"end": 1307
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1312,
"end": 1369
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1312,
"end": 1323
},
"value": "zero-size",
"raw": "--zero-size"
},
"value": [
{
"type": "SimpleBlock",
"span": {
"start": 1325,
"end": 1369
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1325,
"end": 1326
},
"token": "LBrace"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1326,
"end": 1335
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1335,
"end": 1340
},
"token": {
"Ident": {
"value": "width",
"raw": "width"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1340,
"end": 1341
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1341,
"end": 1342
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1342,
"end": 1343
},
"token": {
"Number": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1343,
"end": 1344
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1344,
"end": 1353
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1353,
"end": 1359
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1359,
"end": 1360
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1360,
"end": 1361
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1361,
"end": 1362
},
"token": {
"Number": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1362,
"end": 1363
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1363,
"end": 1368
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1375,
"end": 1440
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1375,
"end": 1387
},
"value": "small-icon",
"raw": "--small-icon"
},
"value": [
{
"type": "SimpleBlock",
"span": {
"start": 1389,
"end": 1439
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1389,
"end": 1390
},
"token": "LBrace"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1390,
"end": 1399
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1399,
"end": 1404
},
"token": {
"Ident": {
"value": "width",
"raw": "width"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1404,
"end": 1405
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1405,
"end": 1406
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1406,
"end": 1410
},
"token": {
"Dimension": {
"dimension": {
"value": 16.0,
"raw_value": "16",
"unit": "px",
"type": "integer",
"raw_unit": "px"
}
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1410,
"end": 1411
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1411,
"end": 1420
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1420,
"end": 1426
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1426,
"end": 1427
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1427,
"end": 1428
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1428,
"end": 1432
},
"token": {
"Dimension": {
"dimension": {
"value": 16.0,
"raw_value": "16",
"unit": "px",
"type": "integer",
"raw_unit": "px"
}
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1432,
"end": 1433
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1433,
"end": 1438
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
}
]
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1445,
"end": 1526
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1445,
"end": 1446
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1445,
"end": 1446
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1445,
"end": 1446
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1445,
"end": 1446
},
"name": {
"type": "WqName",
"span": {
"start": 1445,
"end": 1446
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1445,
"end": 1446
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1447,
"end": 1526
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1447,
"end": 1448
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1453,
"end": 1463
},
"name": {
"type": "Ident",
"span": {
"start": 1453,
"end": 1458
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1460,
"end": 1463
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1512,
"end": 1523
},
"name": {
"type": "Ident",
"span": {
"start": 1512,
"end": 1517
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1519,
"end": 1523
},
"value": "blue",
"raw": "blue"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 1470,
"end": 1506
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 1470,
"end": 1476
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 1470,
"end": 1476
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 1470,
"end": 1476
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1470,
"end": 1476
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1470,
"end": 1476
},
"text": {
"type": "Ident",
"span": {
"start": 1471,
"end": 1476
},
"value": "class",
"raw": "class"
}
}
]
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1477,
"end": 1506
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1477,
"end": 1478
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1487,
"end": 1499
},
"name": {
"type": "Ident",
"span": {
"start": 1487,
"end": 1492
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1494,
"end": 1499
},
"value": "green",
"raw": "green"
}
],
"important": null
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1528,
"end": 1593
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1528,
"end": 1532
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1528,
"end": 1532
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1528,
"end": 1532
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1528,
"end": 1532
},
"text": {
"type": "Ident",
"span": {
"start": 1529,
"end": 1532
},
"value": "foo",
"raw": "foo"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1533,
"end": 1593
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1533,
"end": 1534
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1539,
"end": 1549
},
"name": {
"type": "Ident",
"span": {
"start": 1539,
"end": 1544
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1546,
"end": 1549
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 1556,
"end": 1591
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 1556,
"end": 1562
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 1556,
"end": 1562
},
"combinator": {
"type": "Combinator",
"span": {
"start": 1556,
"end": 1557
},
"value": "+"
},
"selector": {
"type": "ComplexSelector",
"span": {
"start": 1558,
"end": 1562
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1558,
"end": 1562
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1558,
"end": 1562
},
"text": {
"type": "Ident",
"span": {
"start": 1559,
"end": 1562
},
"value": "bar",
"raw": "bar"
}
}
]
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1563,
"end": 1591
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1563,
"end": 1564
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1573,
"end": 1584
},
"name": {
"type": "Ident",
"span": {
"start": 1573,
"end": 1578
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1580,
"end": 1584
},
"value": "blue",
"raw": "blue"
}
],
"important": null
}
]
}
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1595,
"end": 1663
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1595,
"end": 1602
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1595,
"end": 1602
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1595,
"end": 1602
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1595,
"end": 1602
},
"name": {
"type": "WqName",
"span": {
"start": 1595,
"end": 1602
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1595,
"end": 1602
},
"value": "article",
"raw": "article"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1603,
"end": 1663
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1603,
"end": 1604
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1609,
"end": 1621
},
"name": {
"type": "Ident",
"span": {
"start": 1609,
"end": 1614
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1616,
"end": 1621
},
"value": "green",
"raw": "green"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1650,
"end": 1660
},
"name": {
"type": "Ident",
"span": {
"start": 1650,
"end": 1655
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1657,
"end": 1660
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "QualifiedRule",
"span": {
"start": 1627,
"end": 1645
},
"prelude": {
"type": "RelativeSelectorList",
"span": {
"start": 1627,
"end": 1628
},
"children": [
{
"type": "RelativeSelector",
"span": {
"start": 1627,
"end": 1628
},
"combinator": null,
"selector": {
"type": "ComplexSelector",
"span": {
"start": 1627,
"end": 1628
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1627,
"end": 1628
},
"nestingSelector": {
"type": "NestingSelector",
"span": {
"start": 1627,
"end": 1628
}
},
"typeSelector": null,
"subclassSelectors": []
}
]
}
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1629,
"end": 1645
},
"name": {
"type": "PreservedToken",
"span": {
"start": 1629,
"end": 1630
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 1631,
"end": 1642
},
"name": {
"type": "Ident",
"span": {
"start": 1631,
"end": 1636
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 1638,
"end": 1642
},
"value": "blue",
"raw": "blue"
}
],
"important": null
}
]
}
}
]
}
}
]
}