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

225 lines
5.8 KiB
JSON
Raw Normal View History

2021-08-19 08:16:32 +03:00
{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 75,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-08-19 08:16:32 +03:00
"span": {
"start": 1,
"end": 74,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 1,
"end": 7,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"value": "style",
"raw": "style"
}
2021-08-19 08:16:32 +03:00
}
]
}
]
}
]
},
2021-08-19 08:16:32 +03:00
"block": {
"type": "SimpleBlock",
2021-08-19 08:16:32 +03:00
"span": {
"start": 8,
"end": 74,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": "{",
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 11,
"end": 71,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 11,
"end": 32,
2021-08-19 08:16:32 +03:00
"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": 34,
"end": 50,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 34,
"end": 45,
2021-08-19 08:16:32 +03:00
"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": 46,
"end": 49,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 46,
"end": 47,
2021-08-19 08:16:32 +03:00
"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": 47,
"end": 49,
2021-08-19 08:16:32 +03:00
"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": 51,
"end": 67,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-08-19 08:16:32 +03:00
"span": {
"start": 51,
"end": 62,
2021-08-19 08:16:32 +03:00
"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": 63,
"end": 66,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 63,
"end": 64,
2021-08-19 08:16:32 +03:00
"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": 64,
"end": 66,
2021-08-19 08:16:32 +03:00
"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": 68,
"end": 71,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 68,
"end": 69,
2021-08-19 08:16:32 +03:00
"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": 69,
"end": 71,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": "fr",
"raw": "fr"
2021-08-19 08:16:32 +03:00
}
}
],
"important": null
}
]
}
}
]
}