swc/crates/swc_css_parser/tests/fixture/value/custom-property/output.json
2022-02-09 03:25:54 +00:00

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