swc/crates/swc_css_parser/tests/fixture/at-rule/property/output.json
2022-02-12 14:28:00 +09:00

133 lines
2.9 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 97,
"ctxt": 0
},
"rules": [
{
"type": "PropertyRule",
"span": {
"start": 0,
"end": 96,
"ctxt": 0
},
"name": {
"type": "DashedIdent",
"span": {
"start": 10,
"end": 20,
"ctxt": 0
},
"value": "--my-color",
"raw": "--my-color"
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 21,
"end": 96,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 27,
"end": 44,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 27,
"end": 33,
"ctxt": 0
},
"value": "syntax",
"raw": "syntax"
},
"value": [
{
"type": "String",
"span": {
"start": 35,
"end": 44,
"ctxt": 0
},
"value": "<color>",
"raw": "'<color>'"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 50,
"end": 65,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 50,
"end": 58,
"ctxt": 0
},
"value": "inherits",
"raw": "inherits"
},
"value": [
{
"type": "Ident",
"span": {
"start": 60,
"end": 65,
"ctxt": 0
},
"value": "false",
"raw": "false"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 71,
"end": 93,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 71,
"end": 84,
"ctxt": 0
},
"value": "initial-value",
"raw": "initial-value"
},
"value": [
{
"type": "HexColor",
"span": {
"start": 86,
"end": 93,
"ctxt": 0
},
"value": "c0ffee",
"raw": "c0ffee"
}
],
"important": null
}
]
}
}
]
}