swc/crates/swc_css_parser/tests/fixture/at-rule/page/output.json
2021-11-12 19:37:05 +09:00

498 lines
11 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 159,
"ctxt": 0
},
"rules": [
{
"type": "PageRule",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 5,
"end": 8,
"ctxt": 0
},
"items": []
}
},
{
"type": "PageRule",
"span": {
"start": 9,
"end": 16,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 14,
"end": 16,
"ctxt": 0
},
"items": []
}
},
{
"type": "PageRule",
"span": {
"start": 17,
"end": 35,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 22,
"end": 35,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 23,
"end": 34,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 23,
"end": 29,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"span": {
"start": 32,
"end": 34,
"ctxt": 0
},
"value": "cm",
"raw": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 36,
"end": 55,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 42,
"end": 55,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 43,
"end": 54,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 51,
"end": 54,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"span": {
"start": 52,
"end": 54,
"ctxt": 0
},
"value": "cm",
"raw": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 56,
"end": 76,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 62,
"end": 76,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 63,
"end": 74,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 63,
"end": 69,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 71,
"end": 74,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"unit": {
"span": {
"start": 72,
"end": 74,
"ctxt": 0
},
"value": "cm",
"raw": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 77,
"end": 103,
"ctxt": 0
},
"prelude": [
{
"span": {
"start": 83,
"end": 89,
"ctxt": 0
},
"ident": null,
"pseudo": {
"type": "Identifier",
"span": {
"start": 84,
"end": 89,
"ctxt": 0
},
"value": "first",
"raw": "first"
}
}
],
"block": {
"span": {
"start": 90,
"end": 103,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 91,
"end": 102,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 91,
"end": 97,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 99,
"end": 100,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"unit": {
"span": {
"start": 100,
"end": 102,
"ctxt": 0
},
"value": "cm",
"raw": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 104,
"end": 131,
"ctxt": 0
},
"prelude": [
{
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"ident": null,
"pseudo": {
"type": "Identifier",
"span": {
"start": 111,
"end": 116,
"ctxt": 0
},
"value": "first",
"raw": "first"
}
}
],
"block": {
"span": {
"start": 117,
"end": 131,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 118,
"end": 129,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 118,
"end": 124,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 126,
"end": 129,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"unit": {
"span": {
"start": 127,
"end": 129,
"ctxt": 0
},
"value": "cm",
"raw": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 132,
"end": 158,
"ctxt": 0
},
"prelude": [
{
"span": {
"start": 138,
"end": 144,
"ctxt": 0
},
"ident": null,
"pseudo": {
"type": "Identifier",
"span": {
"start": 139,
"end": 144,
"ctxt": 0
},
"value": "first",
"raw": "first"
}
}
],
"block": {
"span": {
"start": 144,
"end": 158,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 145,
"end": 156,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 145,
"end": 151,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "UnitValue",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"unit": {
"span": {
"start": 154,
"end": 156,
"ctxt": 0
},
"value": "cm",
"raw": "cm"
}
}
],
"important": null
}
]
}
}
]
}