swc/crates/swc_css_parser/tests/fixture/value/custom-property/output.json

3341 lines
85 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 1302,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 1219,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 6,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 6,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 6,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1,
"end": 6,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 2,
"end": 6,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 7,
"end": 1219,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 13,
"end": 21,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 13,
"end": 15,
"ctxt": 0
},
"value": "--",
"raw": "--"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 28,
"end": 55,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 28,
"end": 39,
"ctxt": 0
},
"value": "--important",
"raw": "--important"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 40,
"end": 45,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 45,
"end": 55,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 46,
"end": 55,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 61,
"end": 90,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 61,
"end": 73,
"ctxt": 0
},
"value": "--important1",
"raw": "--important1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 75,
"end": 80,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 80,
"end": 90,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 81,
"end": 90,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 96,
"end": 126,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 96,
"end": 108,
"ctxt": 0
},
"value": "--important2",
"raw": "--important2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 110,
"end": 115,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 115,
"end": 116,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 116,
"end": 126,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 117,
"end": 126,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 132,
"end": 161,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 132,
"end": 144,
"ctxt": 0
},
"value": "--important3",
"raw": "--important3"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 145,
"end": 150,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 151,
"end": 161,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 152,
"end": 161,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 167,
"end": 198,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 167,
"end": 179,
"ctxt": 0
},
"value": "--important4",
"raw": "--important4"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 181,
"end": 186,
"ctxt": 0
},
"token": {
"Function": {
"value": "calc",
"raw": "calc"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 187,
"end": 188,
"ctxt": 0
},
"token": "RParen"
}
],
"important": {
"type": "ImportantFlag",
"span": {
"start": 188,
"end": 198,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 189,
"end": 198,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 205,
"end": 215,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 205,
"end": 212,
"ctxt": 0
},
"value": "--empty",
"raw": "--empty"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 220,
"end": 235,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 220,
"end": 228,
"ctxt": 0
},
"value": "--empty2",
"raw": "--empty2"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 240,
"end": 260,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 240,
"end": 248,
"ctxt": 0
},
"value": "--empty3",
"raw": "--empty3"
},
"value": [],
"important": {
"type": "ImportantFlag",
"span": {
"start": 250,
"end": 260,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 251,
"end": 260,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 266,
"end": 290,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 266,
"end": 274,
"ctxt": 0
},
"value": "--empty4",
"raw": "--empty4"
},
"value": [],
"important": {
"type": "ImportantFlag",
"span": {
"start": 280,
"end": 290,
"ctxt": 0
},
"value": {
"type": "Ident",
"span": {
"start": 281,
"end": 290,
"ctxt": 0
},
"value": "important",
"raw": "important"
}
}
},
{
"type": "Declaration",
"span": {
"start": 296,
"end": 321,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 296,
"end": 304,
"ctxt": 0
},
"value": "--empty5",
"raw": "--empty5"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 327,
"end": 348,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 327,
"end": 342,
"ctxt": 0
},
"value": "--no-whitespace",
"raw": "--no-whitespace"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 343,
"end": 348,
"ctxt": 0
},
"token": {
"Ident": {
"value": "ident",
"raw": "ident"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 354,
"end": 365,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 354,
"end": 362,
"ctxt": 0
},
"value": "--number",
"raw": "--number"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 364,
"end": 365,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 371,
"end": 384,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 371,
"end": 377,
"ctxt": 0
},
"value": "--unit",
"raw": "--unit"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 379,
"end": 384,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 100.0,
"raw_value": "100",
"unit": "vw",
"raw_unit": "vw",
"type": "integer"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 390,
"end": 403,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 390,
"end": 397,
"ctxt": 0
},
"value": "--color",
"raw": "--color"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 399,
"end": 403,
"ctxt": 0
},
"token": {
"Hash": {
"is_id": false,
"value": "06c",
"raw": "06c"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 410,
"end": 427,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 410,
"end": 420,
"ctxt": 0
},
"value": "--function",
"raw": "--function"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 422,
"end": 427,
"ctxt": 0
},
"token": {
"Function": {
"value": "calc",
"raw": "calc"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 427,
"end": 428,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 428,
"end": 429,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 429,
"end": 430,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 430,
"end": 431,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 431,
"end": 432,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 432,
"end": 433,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 439,
"end": 455,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 439,
"end": 449,
"ctxt": 0
},
"value": "--variable",
"raw": "--variable"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 451,
"end": 455,
"ctxt": 0
},
"token": {
"Function": {
"value": "var",
"raw": "var"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 455,
"end": 461,
"ctxt": 0
},
"token": {
"Ident": {
"value": "--unit",
"raw": "--unit"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 461,
"end": 462,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 469,
"end": 501,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 469,
"end": 477,
"ctxt": 0
},
"value": "--string",
"raw": "--string"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 479,
"end": 501,
"ctxt": 0
},
"token": {
"String": {
"value": "single quoted string",
"raw": "'single quoted string'"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 507,
"end": 539,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 507,
"end": 515,
"ctxt": 0
},
"value": "--string",
"raw": "--string"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 517,
"end": 539,
"ctxt": 0
},
"token": {
"String": {
"value": "double quoted string",
"raw": "\"double quoted string\""
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 546,
"end": 563,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 546,
"end": 560,
"ctxt": 0
},
"value": "--square-block",
"raw": "--square-block"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 562,
"end": 563,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 563,
"end": 564,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 564,
"end": 565,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 565,
"end": 566,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 566,
"end": 567,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 567,
"end": 568,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 568,
"end": 569,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 569,
"end": 570,
"ctxt": 0
},
"token": {
"Number": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 570,
"end": 571,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 577,
"end": 595,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 577,
"end": 592,
"ctxt": 0
},
"value": "--square-block1",
"raw": "--square-block1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 594,
"end": 595,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 595,
"end": 596,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 602,
"end": 619,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 602,
"end": 617,
"ctxt": 0
},
"value": "--square-block2",
"raw": "--square-block2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 618,
"end": 619,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 619,
"end": 620,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 626,
"end": 642,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 626,
"end": 639,
"ctxt": 0
},
"value": "--round-block",
"raw": "--round-block"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 641,
"end": 642,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 642,
"end": 643,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 643,
"end": 644,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 644,
"end": 645,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 645,
"end": 646,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 646,
"end": 647,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 647,
"end": 648,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"token": {
"Number": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 649,
"end": 650,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 656,
"end": 673,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 656,
"end": 670,
"ctxt": 0
},
"value": "--round-block1",
"raw": "--round-block1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 672,
"end": 673,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 673,
"end": 674,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 680,
"end": 696,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 680,
"end": 694,
"ctxt": 0
},
"value": "--round-block2",
"raw": "--round-block2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 695,
"end": 696,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 696,
"end": 697,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 703,
"end": 721,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 703,
"end": 718,
"ctxt": 0
},
"value": "--bracket-block",
"raw": "--bracket-block"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 720,
"end": 721,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 721,
"end": 722,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 722,
"end": 723,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 723,
"end": 724,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 724,
"end": 725,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 725,
"end": 726,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 726,
"end": 727,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 727,
"end": 728,
"ctxt": 0
},
"token": {
"Number": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 728,
"end": 729,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 735,
"end": 754,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 735,
"end": 751,
"ctxt": 0
},
"value": "--bracket-block1",
"raw": "--bracket-block1"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 753,
"end": 754,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 754,
"end": 755,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 761,
"end": 779,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 761,
"end": 777,
"ctxt": 0
},
"value": "--bracket-block2",
"raw": "--bracket-block2"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 778,
"end": 779,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 779,
"end": 780,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 788,
"end": 797,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 788,
"end": 794,
"ctxt": 0
},
"value": "--JSON",
"raw": "--JSON"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 796,
"end": 797,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 797,
"end": 798,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 798,
"end": 799,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 799,
"end": 800,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 800,
"end": 803,
"ctxt": 0
},
"token": {
"String": {
"value": "2",
"raw": "\"2\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 803,
"end": 804,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 804,
"end": 805,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 805,
"end": 806,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 806,
"end": 813,
"ctxt": 0
},
"token": {
"String": {
"value": "three",
"raw": "\"three\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 813,
"end": 814,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 814,
"end": 815,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 815,
"end": 816,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 816,
"end": 819,
"ctxt": 0
},
"token": {
"String": {
"value": "a",
"raw": "\"a\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 819,
"end": 820,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 820,
"end": 821,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 821,
"end": 822,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 822,
"end": 823,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 823,
"end": 824,
"ctxt": 0
},
"token": "Comma"
},
{
"type": "PreservedToken",
"span": {
"start": 824,
"end": 825,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 825,
"end": 826,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 826,
"end": 827,
"ctxt": 0
},
"token": {
"Number": {
"value": 4.0,
"raw": "4",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 827,
"end": 828,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 828,
"end": 829,
"ctxt": 0
},
"token": "RBracket"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 835,
"end": 858,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 835,
"end": 847,
"ctxt": 0
},
"value": "--javascript",
"raw": "--javascript"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 849,
"end": 858,
"ctxt": 0
},
"token": {
"Function": {
"value": "function",
"raw": "function"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 858,
"end": 862,
"ctxt": 0
},
"token": {
"Ident": {
"value": "rule",
"raw": "rule"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 862,
"end": 863,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 863,
"end": 864,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 864,
"end": 865,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 865,
"end": 866,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 866,
"end": 873,
"ctxt": 0
},
"token": {
"Ident": {
"value": "console",
"raw": "console"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 873,
"end": 874,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 874,
"end": 878,
"ctxt": 0
},
"token": {
"Function": {
"value": "log",
"raw": "log"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 878,
"end": 882,
"ctxt": 0
},
"token": {
"Ident": {
"value": "rule",
"raw": "rule"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 882,
"end": 883,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 883,
"end": 884,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 884,
"end": 885,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 892,
"end": 903,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 892,
"end": 897,
"ctxt": 0
},
"value": "--CDO",
"raw": "--CDO"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 899,
"end": 903,
"ctxt": 0
},
"token": "CDO"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 909,
"end": 919,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 909,
"end": 914,
"ctxt": 0
},
"value": "--CDC",
"raw": "--CDC"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 916,
"end": 919,
"ctxt": 0
},
"token": "CDC"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 926,
"end": 946,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 926,
"end": 944,
"ctxt": 0
},
"value": "--complex-balanced",
"raw": "--complex-balanced"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 945,
"end": 946,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 946,
"end": 947,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 947,
"end": 948,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 948,
"end": 949,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 949,
"end": 950,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 950,
"end": 951,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 951,
"end": 952,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 952,
"end": 953,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 953,
"end": 954,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 954,
"end": 955,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 955,
"end": 956,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 956,
"end": 957,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 957,
"end": 958,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 958,
"end": 959,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 959,
"end": 960,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 960,
"end": 961,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 961,
"end": 962,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 962,
"end": 963,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 963,
"end": 964,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 964,
"end": 965,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 965,
"end": 966,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 966,
"end": 967,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 967,
"end": 968,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 968,
"end": 969,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "PreservedToken",
"span": {
"start": 969,
"end": 970,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 970,
"end": 971,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 971,
"end": 972,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 972,
"end": 973,
"ctxt": 0
},
"token": "LBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 973,
"end": 974,
"ctxt": 0
},
"token": "RBracket"
},
{
"type": "PreservedToken",
"span": {
"start": 974,
"end": 975,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 981,
"end": 999,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 981,
"end": 997,
"ctxt": 0
},
"value": "--fake-important",
"raw": "--fake-important"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 998,
"end": 999,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 999,
"end": 1000,
"ctxt": 0
},
"token": {
"Delim": {
"value": "!"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1000,
"end": 1009,
"ctxt": 0
},
"token": {
"Ident": {
"value": "important",
"raw": "important"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1009,
"end": 1010,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1016,
"end": 1044,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1016,
"end": 1041,
"ctxt": 0
},
"value": "--semicolon-not-top-level",
"raw": "--semicolon-not-top-level"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1043,
"end": 1044,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 1044,
"end": 1045,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1045,
"end": 1046,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1052,
"end": 1076,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1052,
"end": 1073,
"ctxt": 0
},
"value": "--delim-not-top-level",
"raw": "--delim-not-top-level"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1075,
"end": 1076,
"ctxt": 0
},
"token": "LParen"
},
{
"type": "PreservedToken",
"span": {
"start": 1076,
"end": 1077,
"ctxt": 0
},
"token": {
"Delim": {
"value": "!"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1077,
"end": 1078,
"ctxt": 0
},
"token": "RParen"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1084,
"end": 1098,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1084,
"end": 1095,
"ctxt": 0
},
"value": "--zero-size",
"raw": "--zero-size"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1097,
"end": 1098,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 1098,
"end": 1107,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1107,
"end": 1112,
"ctxt": 0
},
"token": {
"Ident": {
"value": "width",
"raw": "width"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1112,
"end": 1113,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1113,
"end": 1114,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1114,
"end": 1115,
"ctxt": 0
},
"token": {
"Number": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1115,
"end": 1116,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1116,
"end": 1125,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1125,
"end": 1131,
"ctxt": 0
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1131,
"end": 1132,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1132,
"end": 1133,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1133,
"end": 1134,
"ctxt": 0
},
"token": {
"Number": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1134,
"end": 1135,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1135,
"end": 1140,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1140,
"end": 1141,
"ctxt": 0
},
"token": "RBrace"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 1147,
"end": 1162,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1147,
"end": 1159,
"ctxt": 0
},
"value": "--small-icon",
"raw": "--small-icon"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1161,
"end": 1162,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 1162,
"end": 1171,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1171,
"end": 1176,
"ctxt": 0
},
"token": {
"Ident": {
"value": "width",
"raw": "width"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1176,
"end": 1177,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1177,
"end": 1178,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1178,
"end": 1182,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 16.0,
"raw_value": "16",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1182,
"end": 1183,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1183,
"end": 1192,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1192,
"end": 1198,
"ctxt": 0
},
"token": {
"Ident": {
"value": "height",
"raw": "height"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1198,
"end": 1199,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 1199,
"end": 1200,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1200,
"end": 1204,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 16.0,
"raw_value": "16",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1204,
"end": 1205,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 1205,
"end": 1210,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 1210,
"end": 1211,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 1211,
"end": 1216,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1221,
"end": 1233,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1221,
"end": 1226,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1221,
"end": 1226,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1221,
"end": 1226,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1221,
"end": 1226,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1222,
"end": 1226,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1226,
"end": 1233,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1227,
"end": 1232,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1227,
"end": 1230,
"ctxt": 0
},
"value": "--a",
"raw": "--a"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1231,
"end": 1232,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1234,
"end": 1249,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1234,
"end": 1239,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1234,
"end": 1239,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1234,
"end": 1239,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1234,
"end": 1239,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1235,
"end": 1239,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1240,
"end": 1249,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1241,
"end": 1249,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1241,
"end": 1246,
"ctxt": 0
},
"value": "--foo",
"raw": "--foo"
},
"value": [],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1250,
"end": 1271,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1250,
"end": 1255,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1250,
"end": 1255,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1250,
"end": 1255,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1250,
"end": 1255,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1251,
"end": 1255,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1256,
"end": 1271,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1262,
"end": 1271,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1262,
"end": 1267,
"ctxt": 0
},
"value": "--foo",
"raw": "--foo"
},
"value": [],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
"span": {
"start": 1273,
"end": 1301,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1273,
"end": 1278,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1273,
"end": 1278,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1273,
"end": 1278,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 1273,
"end": 1278,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1274,
"end": 1278,
"ctxt": 0
},
"value": "root",
"raw": "root"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 1279,
"end": 1301,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 1285,
"end": 1298,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 1285,
"end": 1290,
"ctxt": 0
},
"value": "--var",
"raw": "--var"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 1293,
"end": 1298,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
],
"important": null
}
]
}
}
]
}