swc/css/parser/tests/fixture/at-rule/page/output.json
2021-10-07 20:32:54 +09:00

486 lines
10 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": "Property",
"span": {
"start": 23,
"end": 34,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 23,
"end": 29,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 31,
"end": 34,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"value": 1.0
},
"unit": {
"span": {
"start": 32,
"end": 34,
"ctxt": 0
},
"kind": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 36,
"end": 55,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 42,
"end": 55,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 43,
"end": 54,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 51,
"end": 54,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 1.0
},
"unit": {
"span": {
"start": 52,
"end": 54,
"ctxt": 0
},
"kind": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 56,
"end": 76,
"ctxt": 0
},
"prelude": [],
"block": {
"span": {
"start": 62,
"end": 76,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 63,
"end": 74,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 63,
"end": 69,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 71,
"end": 74,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"value": 1.0
},
"unit": {
"span": {
"start": 72,
"end": 74,
"ctxt": 0
},
"kind": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 77,
"end": 103,
"ctxt": 0
},
"prelude": [
{
"span": {
"start": 83,
"end": 89,
"ctxt": 0
},
"ident": null,
"pseudo": {
"type": "Text",
"span": {
"start": 84,
"end": 89,
"ctxt": 0
},
"value": "first",
"raw": "first"
}
}
],
"block": {
"span": {
"start": 90,
"end": 103,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 91,
"end": 102,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 91,
"end": 97,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 99,
"end": 100,
"ctxt": 0
},
"value": 2.0
},
"unit": {
"span": {
"start": 100,
"end": 102,
"ctxt": 0
},
"kind": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 104,
"end": 131,
"ctxt": 0
},
"prelude": [
{
"span": {
"start": 110,
"end": 116,
"ctxt": 0
},
"ident": null,
"pseudo": {
"type": "Text",
"span": {
"start": 111,
"end": 116,
"ctxt": 0
},
"value": "first",
"raw": "first"
}
}
],
"block": {
"span": {
"start": 117,
"end": 131,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 118,
"end": 129,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 118,
"end": 124,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 126,
"end": 129,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 126,
"end": 127,
"ctxt": 0
},
"value": 2.0
},
"unit": {
"span": {
"start": 127,
"end": 129,
"ctxt": 0
},
"kind": "cm"
}
}
],
"important": null
}
]
}
},
{
"type": "PageRule",
"span": {
"start": 132,
"end": 158,
"ctxt": 0
},
"prelude": [
{
"span": {
"start": 138,
"end": 144,
"ctxt": 0
},
"ident": null,
"pseudo": {
"type": "Text",
"span": {
"start": 139,
"end": 144,
"ctxt": 0
},
"value": "first",
"raw": "first"
}
}
],
"block": {
"span": {
"start": 144,
"end": 158,
"ctxt": 0
},
"items": [
{
"type": "Property",
"span": {
"start": 145,
"end": 156,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 145,
"end": 151,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"values": [
{
"type": "UnitValue",
"span": {
"start": 153,
"end": 156,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 153,
"end": 154,
"ctxt": 0
},
"value": 2.0
},
"unit": {
"span": {
"start": 154,
"end": 156,
"ctxt": 0
},
"kind": "cm"
}
}
],
"important": null
}
]
}
}
]
}