swc/crates/swc_css_parser/tests/fixture/value/custom-property/output.json
2022-02-14 13:05:16 +00:00

3341 lines
85 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 1301,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 1218,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1,
"end": 5,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 6,
"end": 1218,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 12,
"end": 20,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 12,
"end": 14,
"ctxt": 0
},
"value": "--",
"raw": "--"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 15,
"end": 20,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 27,
"end": 54,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 27,
"end": 38,
"ctxt": 0
},
"value": "--important",
"raw": "--important"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 44,
"end": 54,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 45,
"end": 54,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 60,
"end": 89,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 60,
"end": 72,
"ctxt": 0
},
"value": "--important1",
"raw": "--important1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 74,
"end": 79,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 79,
"end": 89,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 80,
"end": 89,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 95,
"end": 125,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 95,
"end": 107,
"ctxt": 0
},
"value": "--important2",
"raw": "--important2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 109,
"end": 114,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 114,
"end": 115,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 115,
"end": 125,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 116,
"end": 125,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 131,
"end": 160,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 131,
"end": 143,
"ctxt": 0
},
"value": "--important3",
"raw": "--important3"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 144,
"end": 149,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 149,
"end": 150,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 150,
"end": 160,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 151,
"end": 160,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 166,
"end": 197,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 166,
"end": 178,
"ctxt": 0
},
"value": "--important4",
"raw": "--important4"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 180,
"end": 185,
"ctxt": 0
},
"token": {
"Function": {
"value": "calc",
"raw": "calc"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"token": "RParen"
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 187,
"end": 197,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 188,
"end": 197,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 204,
"end": 214,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 204,
"end": 211,
"ctxt": 0
},
"value": "--empty",
"raw": "--empty"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 219,
"end": 234,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 219,
"end": 227,
"ctxt": 0
},
"value": "--empty2",
"raw": "--empty2"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 239,
"end": 259,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 239,
"end": 247,
"ctxt": 0
},
"value": "--empty3",
"raw": "--empty3"
},
"value": [],
"important": {
"type": "ImportantFlag",
"span": {
"start": 249,
"end": 259,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 250,
"end": 259,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 265,
"end": 289,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 265,
"end": 273,
"ctxt": 0
},
"value": "--empty4",
"raw": "--empty4"
},
"value": [],
"important": {
"type": "ImportantFlag",
"span": {
"start": 279,
"end": 289,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 280,
"end": 289,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 295,
"end": 320,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 295,
"end": 303,
"ctxt": 0
},
"value": "--empty5",
"raw": "--empty5"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 326,
"end": 347,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 326,
"end": 341,
"ctxt": 0
},
"value": "--no-whitespace",
"raw": "--no-whitespace"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 342,
"end": 347,
"ctxt": 0
},
"token": {
"Ident": {
"value": "ident",
"raw": "ident"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 353,
"end": 364,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 353,
"end": 361,
"ctxt": 0
},
"value": "--number",
"raw": "--number"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 363,
"end": 364,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 370,
"end": 383,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 370,
"end": 376,
"ctxt": 0
},
"value": "--unit",
"raw": "--unit"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 378,
"end": 383,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 100.0,
"raw_value": "100",
"unit": "vw",
"raw_unit": "vw",
"type": "integer"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 389,
"end": 402,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 389,
"end": 396,
"ctxt": 0
},
"value": "--color",
"raw": "--color"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 398,
"end": 402,
"ctxt": 0
},
"token": {
"Hash": {
"is_id": false,
"value": "06c",
"raw": "06c"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 409,
"end": 426,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 409,
"end": 419,
"ctxt": 0
},
"value": "--function",
"raw": "--function"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 421,
"end": 426,
"ctxt": 0
},
"token": {
"Function": {
"value": "calc",
"raw": "calc"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 426,
"end": 427,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 427,
"end": 428,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 428,
"end": 429,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 429,
"end": 430,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 430,
"end": 431,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 431,
"end": 432,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 438,
"end": 454,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 438,
"end": 448,
"ctxt": 0
},
"value": "--variable",
"raw": "--variable"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 450,
"end": 454,
"ctxt": 0
},
"token": {
"Function": {
"value": "var",
"raw": "var"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 454,
"end": 460,
"ctxt": 0
},
"token": {
"Ident": {
"value": "--unit",
"raw": "--unit"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 460,
"end": 461,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 468,
"end": 500,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 468,
"end": 476,
"ctxt": 0
},
"value": "--string",
"raw": "--string"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 478,
"end": 500,
"ctxt": 0
},
"token": {
"String": {
"value": "single quoted string",
"raw": "'single quoted string'"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 506,
"end": 538,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 506,
"end": 514,
"ctxt": 0
},
"value": "--string",
"raw": "--string"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 516,
"end": 538,
"ctxt": 0
},
"token": {
"String": {
"value": "double quoted string",
"raw": "\"double quoted string\""
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 545,
"end": 562,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 545,
"end": 559,
"ctxt": 0
},
"value": "--square-block",
"raw": "--square-block"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 561,
"end": 562,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 562,
"end": 563,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 563,
"end": 564,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 564,
"end": 565,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 565,
"end": 566,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 566,
"end": 567,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 567,
"end": 568,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 568,
"end": 569,
"ctxt": 0
},
"token": {
"Number": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 569,
"end": 570,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 576,
"end": 594,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 576,
"end": 591,
"ctxt": 0
},
"value": "--square-block1",
"raw": "--square-block1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 593,
"end": 594,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 594,
"end": 595,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 601,
"end": 618,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 601,
"end": 616,
"ctxt": 0
},
"value": "--square-block2",
"raw": "--square-block2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 617,
"end": 618,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 618,
"end": 619,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 625,
"end": 641,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 625,
"end": 638,
"ctxt": 0
},
"value": "--round-block",
"raw": "--round-block"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 640,
"end": 641,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 641,
"end": 642,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 642,
"end": 643,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 643,
"end": 644,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 644,
"end": 645,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 645,
"end": 646,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 646,
"end": 647,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 647,
"end": 648,
"ctxt": 0
},
"token": {
"Number": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 655,
"end": 672,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 655,
"end": 669,
"ctxt": 0
},
"value": "--round-block1",
"raw": "--round-block1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 671,
"end": 672,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 672,
"end": 673,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 679,
"end": 695,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 679,
"end": 693,
"ctxt": 0
},
"value": "--round-block2",
"raw": "--round-block2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 694,
"end": 695,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 695,
"end": 696,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 702,
"end": 720,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 702,
"end": 717,
"ctxt": 0
},
"value": "--bracket-block",
"raw": "--bracket-block"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 719,
"end": 720,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 720,
"end": 721,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 721,
"end": 722,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 722,
"end": 723,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 723,
"end": 724,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 724,
"end": 725,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 725,
"end": 726,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 726,
"end": 727,
"ctxt": 0
},
"token": {
"Number": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 727,
"end": 728,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 734,
"end": 753,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 734,
"end": 750,
"ctxt": 0
},
"value": "--bracket-block1",
"raw": "--bracket-block1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 752,
"end": 753,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 753,
"end": 754,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 760,
"end": 778,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 760,
"end": 776,
"ctxt": 0
},
"value": "--bracket-block2",
"raw": "--bracket-block2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 777,
"end": 778,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 778,
"end": 779,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 787,
"end": 796,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 787,
"end": 793,
"ctxt": 0
},
"value": "--JSON",
"raw": "--JSON"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 795,
"end": 796,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 796,
"end": 797,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 797,
"end": 798,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 798,
"end": 799,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 799,
"end": 802,
"ctxt": 0
},
"token": {
"String": {
"value": "2",
"raw": "\"2\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 802,
"end": 803,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 803,
"end": 804,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 804,
"end": 805,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 805,
"end": 812,
"ctxt": 0
},
"token": {
"String": {
"value": "three",
"raw": "\"three\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 812,
"end": 813,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 813,
"end": 814,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 814,
"end": 815,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 815,
"end": 818,
"ctxt": 0
},
"token": {
"String": {
"value": "a",
"raw": "\"a\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 818,
"end": 819,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 819,
"end": 820,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 820,
"end": 821,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 821,
"end": 822,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 822,
"end": 823,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 823,
"end": 824,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 824,
"end": 825,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 825,
"end": 826,
"ctxt": 0
},
"token": {
"Number": {
"value": 4.0,
"raw": "4",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 826,
"end": 827,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 827,
"end": 828,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 834,
"end": 857,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 834,
"end": 846,
"ctxt": 0
},
"value": "--javascript",
"raw": "--javascript"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 848,
"end": 857,
"ctxt": 0
},
"token": {
"Function": {
"value": "function",
"raw": "function"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 857,
"end": 861,
"ctxt": 0
},
"token": {
"Ident": {
"value": "rule",
"raw": "rule"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 861,
"end": 862,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 862,
"end": 863,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 863,
"end": 864,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 864,
"end": 865,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 865,
"end": 872,
"ctxt": 0
},
"token": {
"Ident": {
"value": "console",
"raw": "console"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 872,
"end": 873,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 873,
"end": 877,
"ctxt": 0
},
"token": {
"Function": {
"value": "log",
"raw": "log"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 877,
"end": 881,
"ctxt": 0
},
"token": {
"Ident": {
"value": "rule",
"raw": "rule"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 881,
"end": 882,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 882,
"end": 883,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 883,
"end": 884,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 891,
"end": 902,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 891,
"end": 896,
"ctxt": 0
},
"value": "--CDO",
"raw": "--CDO"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 898,
"end": 902,
"ctxt": 0
},
"token": "CDO"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 908,
"end": 918,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 908,
"end": 913,
"ctxt": 0
},
"value": "--CDC",
"raw": "--CDC"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 915,
"end": 918,
"ctxt": 0
},
"token": "CDC"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 925,
"end": 945,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 925,
"end": 943,
"ctxt": 0
},
"value": "--complex-balanced",
"raw": "--complex-balanced"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 944,
"end": 945,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 945,
"end": 946,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 946,
"end": 947,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 947,
"end": 948,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 948,
"end": 949,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 949,
"end": 950,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 950,
"end": 951,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 951,
"end": 952,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 952,
"end": 953,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 953,
"end": 954,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 954,
"end": 955,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 955,
"end": 956,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 956,
"end": 957,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 957,
"end": 958,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 958,
"end": 959,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 959,
"end": 960,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 960,
"end": 961,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 961,
"end": 962,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 962,
"end": 963,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 963,
"end": 964,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 964,
"end": 965,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 965,
"end": 966,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 966,
"end": 967,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 967,
"end": 968,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 968,
"end": 969,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 969,
"end": 970,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 970,
"end": 971,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 971,
"end": 972,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 972,
"end": 973,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 973,
"end": 974,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 980,
"end": 998,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 980,
"end": 996,
"ctxt": 0
},
"value": "--fake-important",
"raw": "--fake-important"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 997,
"end": 998,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 998,
"end": 999,
"ctxt": 0
},
"token": {
"Delim": {
"value": "!"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 999,
"end": 1008,
"ctxt": 0
},
"token": {
"Ident": {
"value": "important",
"raw": "important"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1008,
"end": 1009,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1015,
"end": 1043,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1015,
"end": 1040,
"ctxt": 0
},
"value": "--semicolon-not-top-level",
"raw": "--semicolon-not-top-level"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1042,
"end": 1043,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 1043,
"end": 1044,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1044,
"end": 1045,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1051,
"end": 1075,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1051,
"end": 1072,
"ctxt": 0
},
"value": "--delim-not-top-level",
"raw": "--delim-not-top-level"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1074,
"end": 1075,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 1075,
"end": 1076,
"ctxt": 0
},
"token": {
"Delim": {
"value": "!"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1076,
"end": 1077,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1083,
"end": 1097,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1083,
"end": 1094,
"ctxt": 0
},
"value": "--zero-size",
"raw": "--zero-size"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1096,
"end": 1097,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 1097,
"end": 1106,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1106,
"end": 1111,
"ctxt": 0
},
"token": {
"Ident": {
"value": "width",
"raw": "width"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1111,
"end": 1112,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1112,
"end": 1113,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1113,
"end": 1114,
"ctxt": 0
},
"token": {
"Number": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1114,
"end": 1115,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1115,
"end": 1124,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1124,
"end": 1130,
"ctxt": 0
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1130,
"end": 1131,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1131,
"end": 1132,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1132,
"end": 1133,
"ctxt": 0
},
"token": {
"Number": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1133,
"end": 1134,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1134,
"end": 1139,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1139,
"end": 1140,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1146,
"end": 1161,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1146,
"end": 1158,
"ctxt": 0
},
"value": "--small-icon",
"raw": "--small-icon"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1160,
"end": 1161,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 1161,
"end": 1170,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1170,
"end": 1175,
"ctxt": 0
},
"token": {
"Ident": {
"value": "width",
"raw": "width"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1175,
"end": 1176,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1176,
"end": 1177,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1177,
"end": 1181,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 16.0,
"raw_value": "16",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1181,
"end": 1182,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1182,
"end": 1191,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1191,
"end": 1197,
"ctxt": 0
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1197,
"end": 1198,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1198,
"end": 1199,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1199,
"end": 1203,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 16.0,
"raw_value": "16",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1203,
"end": 1204,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1204,
"end": 1209,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1209,
"end": 1210,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 1210,
"end": 1215,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1220,
"end": 1232,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1220,
"end": 1225,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1220,
"end": 1225,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1220,
"end": 1225,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1220,
"end": 1225,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1221,
"end": 1225,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1225,
"end": 1232,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1226,
"end": 1231,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1226,
"end": 1229,
"ctxt": 0
},
"value": "--a",
"raw": "--a"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1230,
"end": 1231,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1233,
"end": 1248,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1233,
"end": 1238,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1233,
"end": 1238,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1233,
"end": 1238,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1233,
"end": 1238,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1234,
"end": 1238,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1239,
"end": 1248,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1240,
"end": 1248,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1240,
"end": 1245,
"ctxt": 0
},
"value": "--foo",
"raw": "--foo"
},
"value": [],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1249,
"end": 1270,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1249,
"end": 1254,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1249,
"end": 1254,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1249,
"end": 1254,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1249,
"end": 1254,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1250,
"end": 1254,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1255,
"end": 1270,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1261,
"end": 1270,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1261,
"end": 1266,
"ctxt": 0
},
"value": "--foo",
"raw": "--foo"
},
"value": [],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1272,
"end": 1300,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1272,
"end": 1277,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1272,
"end": 1277,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1272,
"end": 1277,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1272,
"end": 1277,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1273,
"end": 1277,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1278,
"end": 1300,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1284,
"end": 1297,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1284,
"end": 1289,
"ctxt": 0
},
"value": "--var",
"raw": "--var"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1292,
"end": 1297,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": null
}
]
}
}
]
}