mirror of
https://github.com/swc-project/swc.git
synced 2024-12-15 17:11:58 +03:00
731 lines
18 KiB
JSON
731 lines
18 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 197,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 4,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": {
|
|
"type": "TagNameSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 4,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "WqName",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 4,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"value": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 4,
|
|
"ctxt": 0
|
|
},
|
|
"value": "html",
|
|
"raw": "html"
|
|
}
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
},
|
|
{
|
|
"type": "Combinator",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 6,
|
|
"ctxt": 0
|
|
},
|
|
"value": ">"
|
|
},
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": {
|
|
"type": "TagNameSelector",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "WqName",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"value": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"value": "body",
|
|
"raw": "body"
|
|
}
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
},
|
|
{
|
|
"type": "Combinator",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 17,
|
|
"ctxt": 0
|
|
},
|
|
"value": " "
|
|
},
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": null,
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "ClassSelector",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 18,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"value": "selector",
|
|
"raw": "selector"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 27,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": []
|
|
}
|
|
},
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": {
|
|
"type": "TagNameSelector",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "WqName",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"value": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"value": "head",
|
|
"raw": "head"
|
|
}
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
},
|
|
{
|
|
"type": "Combinator",
|
|
"span": {
|
|
"start": 35,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"value": "~"
|
|
},
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": {
|
|
"type": "TagNameSelector",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "WqName",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"value": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"value": "body",
|
|
"raw": "body"
|
|
}
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
},
|
|
{
|
|
"type": "Combinator",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 47,
|
|
"ctxt": 0
|
|
},
|
|
"value": " "
|
|
},
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": null,
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "ClassSelector",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"value": "selector",
|
|
"raw": "selector"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 57,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": []
|
|
}
|
|
},
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 92,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": null,
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "ClassSelector",
|
|
"span": {
|
|
"start": 61,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 62,
|
|
"end": 70,
|
|
"ctxt": 0
|
|
},
|
|
"value": "selector",
|
|
"raw": "selector"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 71,
|
|
"end": 92,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 73,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 73,
|
|
"end": 82,
|
|
"ctxt": 0
|
|
},
|
|
"value": "_property",
|
|
"raw": "_property"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 84,
|
|
"end": 89,
|
|
"ctxt": 0
|
|
},
|
|
"value": "value",
|
|
"raw": "value"
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 124,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": null,
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "ClassSelector",
|
|
"span": {
|
|
"start": 93,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 94,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"value": "selector",
|
|
"raw": "selector"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 103,
|
|
"end": 124,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 121,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 114,
|
|
"ctxt": 0
|
|
},
|
|
"value": "-property",
|
|
"raw": "-property"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 116,
|
|
"end": 121,
|
|
"ctxt": 0
|
|
},
|
|
"value": "value",
|
|
"raw": "value"
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 157,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 134,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 134,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 134,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": null,
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "ClassSelector",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 134,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 126,
|
|
"end": 134,
|
|
"ctxt": 0
|
|
},
|
|
"value": "selector",
|
|
"raw": "selector"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 135,
|
|
"end": 157,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 137,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 137,
|
|
"end": 145,
|
|
"ctxt": 0
|
|
},
|
|
"value": "property",
|
|
"raw": "property"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 147,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"value": "value\t",
|
|
"raw": "value\\9"
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 158,
|
|
"end": 196,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 158,
|
|
"end": 167,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 158,
|
|
"end": 167,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 158,
|
|
"end": 167,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": null,
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "ClassSelector",
|
|
"span": {
|
|
"start": 158,
|
|
"end": 167,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 159,
|
|
"end": 167,
|
|
"ctxt": 0
|
|
},
|
|
"value": "selector",
|
|
"raw": "selector"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 168,
|
|
"end": 196,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 170,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 170,
|
|
"end": 178,
|
|
"ctxt": 0
|
|
},
|
|
"value": "property",
|
|
"raw": "property"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 186,
|
|
"end": 193,
|
|
"ctxt": 0
|
|
},
|
|
"value": "value\t",
|
|
"raw": "value\\9"
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|