swc/crates/swc_css_parser/tests/fixture/vercel/002/output.json

169 lines
4.2 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 78,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 78,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 3,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1,
"end": 3,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 2,
"end": 3,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 4,
"end": 78,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 10,
"end": 75,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 10,
"end": 28,
"ctxt": 0
},
"value": "-webkit-mask-image",
"raw": "-webkit-mask-image"
},
"value": [
{
"type": "Function",
"span": {
"start": 30,
"end": 75,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 30,
"end": 53,
"ctxt": 0
},
"value": "-webkit-radial-gradient",
"raw": "-webkit-radial-gradient"
},
"value": [
{
"type": "Ident",
"span": {
"start": 54,
"end": 60,
"ctxt": 0
},
"value": "circle",
"raw": "circle"
},
{
"type": "Delimiter",
"span": {
"start": 60,
"end": 61,
"ctxt": 0
},
"value": ","
},
{
"type": "Ident",
"span": {
"start": 62,
"end": 67,
"ctxt": 0
},
"value": "white",
"raw": "white"
},
{
"type": "Delimiter",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"value": ","
},
{
"type": "Ident",
"span": {
"start": 69,
"end": 74,
"ctxt": 0
},
"value": "black",
"raw": "black"
}
]
}
],
"important": null
}
]
}
}
]
}