swc/crates/swc_css_parser/tests/fixture/rome/fit-content/output.json

224 lines
5.7 KiB
JSON
Raw Normal View History

2021-08-19 08:16:32 +03:00
{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 74,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-08-19 08:16:32 +03:00
"span": {
"start": 0,
"end": 73,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 0,
2021-08-19 08:16:32 +03:00
"end": 6,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 1,
"end": 6,
"ctxt": 0
},
"value": "style",
"raw": "style"
}
2021-08-19 08:16:32 +03:00
}
]
}
]
}
]
},
2021-08-19 08:16:32 +03:00
"block": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 7,
"end": 73,
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": 10,
"end": 70,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 10,
"end": 31,
"ctxt": 0
},
"value": "grid-template-columns",
"raw": "grid-template-columns"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Function",
2021-08-19 08:16:32 +03:00
"span": {
"start": 33,
"end": 49,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 33,
"end": 44,
"ctxt": 0
},
"value": "fit-content",
"raw": "fit-content"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Length",
2021-08-19 08:16:32 +03:00
"span": {
"start": 45,
"end": 48,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
2021-08-19 08:16:32 +03:00
},
"unit": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 46,
"end": 48,
"ctxt": 0
},
"value": "ch",
"raw": "ch"
2021-08-19 08:16:32 +03:00
}
}
]
},
{
"type": "Function",
2021-08-19 08:16:32 +03:00
"span": {
"start": 50,
"end": 66,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 50,
"end": 61,
"ctxt": 0
},
"value": "fit-content",
"raw": "fit-content"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Length",
2021-08-19 08:16:32 +03:00
"span": {
"start": 62,
"end": 65,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"value": 8.0,
"raw": "8"
2021-08-19 08:16:32 +03:00
},
"unit": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 63,
"end": 65,
"ctxt": 0
},
"value": "ch",
"raw": "ch"
2021-08-19 08:16:32 +03:00
}
}
]
},
{
"type": "Flex",
2021-08-19 08:16:32 +03:00
"span": {
"start": 67,
"end": 70,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 67,
"end": 68,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
2021-08-19 08:16:32 +03:00
},
"unit": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 68,
"end": 70,
"ctxt": 0
},
"value": "fr",
"raw": "fr"
2021-08-19 08:16:32 +03:00
}
}
],
"important": null
}
]
}
}
]
}