swc/crates/swc_css_parser/tests/fixture/value/angle/output.json
2022-10-13 05:31:34 +00:00

371 lines
9.6 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 138,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 137,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 5,
"end": 137,
"ctxt": 0
},
"name": {
"type": "PreservedToken",
"span": {
"start": 5,
"end": 6,
"ctxt": 0
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 35,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 20,
"ctxt": 0
},
"value": "transform",
"raw": "transform"
},
"value": [
{
"type": "Function",
"span": {
"start": 22,
"end": 35,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 22,
"end": 28,
"ctxt": 0
},
"value": "rotate",
"raw": "rotate"
},
"value": [
{
"type": "Angle",
"span": {
"start": 29,
"end": 34,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 29,
"end": 31,
"ctxt": 0
},
"value": 45.0,
"raw": "45"
},
"unit": {
"type": "Ident",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"value": "deg",
"raw": "deg"
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 41,
"end": 67,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 41,
"end": 50,
"ctxt": 0
},
"value": "transform",
"raw": "transform"
},
"value": [
{
"type": "Function",
"span": {
"start": 52,
"end": 67,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 52,
"end": 58,
"ctxt": 0
},
"value": "rotate",
"raw": "rotate"
},
"value": [
{
"type": "Angle",
"span": {
"start": 59,
"end": 66,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 59,
"end": 62,
"ctxt": 0
},
"value": -50.0,
"raw": "-50"
},
"unit": {
"type": "Ident",
"span": {
"start": 62,
"end": 66,
"ctxt": 0
},
"value": "grad",
"raw": "grad"
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 73,
"end": 101,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 73,
"end": 82,
"ctxt": 0
},
"value": "transform",
"raw": "transform"
},
"value": [
{
"type": "Function",
"span": {
"start": 84,
"end": 101,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 84,
"end": 90,
"ctxt": 0
},
"value": "rotate",
"raw": "rotate"
},
"value": [
{
"type": "Angle",
"span": {
"start": 91,
"end": 100,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 91,
"end": 97,
"ctxt": 0
},
"value": 3.1416,
"raw": "3.1416"
},
"unit": {
"type": "Ident",
"span": {
"start": 97,
"end": 100,
"ctxt": 0
},
"value": "rad",
"raw": "rad"
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 107,
"end": 134,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 107,
"end": 116,
"ctxt": 0
},
"value": "transform",
"raw": "transform"
},
"value": [
{
"type": "Function",
"span": {
"start": 118,
"end": 134,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 118,
"end": 124,
"ctxt": 0
},
"value": "rotate",
"raw": "rotate"
},
"value": [
{
"type": "Angle",
"span": {
"start": 125,
"end": 133,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 125,
"end": 129,
"ctxt": 0
},
"value": 1.75,
"raw": "1.75"
},
"unit": {
"type": "Ident",
"span": {
"start": 129,
"end": 133,
"ctxt": 0
},
"value": "turn",
"raw": "turn"
}
}
]
}
],
"important": null
}
]
}
}
]
}