swc/crates/swc_css_parser/tests/fixture/rome/keyframe/output.json

396 lines
9.0 KiB
JSON
Raw Normal View History

2021-08-19 08:16:32 +03:00
{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 253,
"ctxt": 0
},
"rules": [
{
"type": "KeyframesRule",
"span": {
"start": 0,
"end": 132,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "CustomIdentifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 11,
"end": 21,
"ctxt": 0
},
"value": "important1",
"raw": "important1"
2021-08-19 08:16:32 +03:00
},
"blocks": [
{
"span": {
"start": 28,
"end": 77,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 28,
"end": 32,
"ctxt": 0
},
"value": "from",
"raw": "from"
2021-08-19 08:16:32 +03:00
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 33,
"end": 77,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 43,
"end": 70,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"property": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"value": "margin-top",
"raw": "margin-top"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "UnitValue",
"span": {
"start": 55,
"end": 59,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 55,
"end": 57,
"ctxt": 0
},
"value": 50.0,
"raw": "50"
2021-08-19 08:16:32 +03:00
},
"unit": {
"span": {
"start": 57,
"end": 59,
"ctxt": 0
},
"value": "px",
"raw": "px"
2021-08-19 08:16:32 +03:00
}
}
],
"important": {
"start": 60,
"end": 70,
2021-08-19 08:16:32 +03:00
"ctxt": 0
}
}
]
}
},
{
"span": {
"start": 82,
"end": 130,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 82,
"end": 84,
"ctxt": 0
},
"value": "to",
"raw": "to"
2021-08-19 08:16:32 +03:00
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 85,
"end": 130,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 95,
"end": 123,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"property": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 95,
"end": 105,
"ctxt": 0
},
"value": "margin-top",
"raw": "margin-top"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "UnitValue",
"span": {
"start": 107,
"end": 112,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 107,
"end": 110,
"ctxt": 0
},
"value": 100.0,
"raw": "100"
2021-08-19 08:16:32 +03:00
},
"unit": {
"span": {
"start": 110,
"end": 112,
"ctxt": 0
},
"value": "px",
"raw": "px"
2021-08-19 08:16:32 +03:00
}
}
],
"important": {
"start": 113,
"end": 123,
2021-08-19 08:16:32 +03:00
"ctxt": 0
}
}
]
}
}
]
},
{
"type": "KeyframesRule",
"span": {
"start": 134,
"end": 232,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "CustomIdentifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 145,
"end": 148,
"ctxt": 0
},
"value": "foo",
"raw": "foo"
2021-08-19 08:16:32 +03:00
},
"blocks": [
{
"span": {
"start": 155,
"end": 167,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 155,
"end": 159,
"ctxt": 0
},
"value": "from",
"raw": "from"
2021-08-19 08:16:32 +03:00
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 160,
"end": 167,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": []
2021-08-19 08:16:32 +03:00
}
},
{
"span": {
"start": 172,
"end": 182,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 172,
"end": 174,
"ctxt": 0
},
"value": "to",
"raw": "to"
2021-08-19 08:16:32 +03:00
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 175,
"end": 182,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": []
2021-08-19 08:16:32 +03:00
}
},
{
"span": {
"start": 187,
"end": 198,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "PercentValue",
"span": {
"start": 187,
"end": 190,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 187,
"end": 189,
"ctxt": 0
},
"value": 15.0,
"raw": "15"
2021-08-19 08:16:32 +03:00
}
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 191,
"end": 198,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": []
2021-08-19 08:16:32 +03:00
}
},
{
"span": {
"start": 203,
"end": 213,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "PercentValue",
"span": {
"start": 203,
"end": 205,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 203,
"end": 204,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
2021-08-19 08:16:32 +03:00
}
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 206,
"end": 213,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": []
2021-08-19 08:16:32 +03:00
}
},
{
"span": {
"start": 218,
"end": 230,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selector": [
{
"type": "PercentValue",
"span": {
"start": 218,
"end": 222,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 218,
"end": 221,
"ctxt": 0
},
"value": 100.0,
"raw": "100"
2021-08-19 08:16:32 +03:00
}
}
],
"rule": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 223,
"end": 230,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": []
2021-08-19 08:16:32 +03:00
}
}
]
},
{
"type": "KeyframesRule",
"span": {
"start": 234,
"end": 252,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "CustomIdentifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 245,
"end": 248,
"ctxt": 0
},
"value": "FOO",
"raw": "FOO"
2021-08-19 08:16:32 +03:00
},
"blocks": []
}
]
}