swc/css/parser/tests/fixture/selector/combinators/output.json

842 lines
20 KiB
JSON
Raw Normal View History

2021-10-06 18:32:31 +03:00
{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 142,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 9,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"value": "article",
"raw": "article"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 8,
"end": 9,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 10,
"end": 12,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 13,
"end": 29,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 13,
"end": 24,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 13,
"end": 20,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 13,
"end": 20,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 13,
"end": 20,
"ctxt": 0
},
"value": "article",
"raw": "article"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 27,
"end": 29,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 30,
"end": 44,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 30,
"end": 41,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 30,
"end": 37,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 30,
"end": 37,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 30,
"end": 37,
"ctxt": 0
},
"value": "article",
"raw": "article"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 40,
"end": 41,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": ">",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 40,
"end": 41,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 40,
"end": 41,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 42,
"end": 44,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 45,
"end": 68,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 45,
"end": 62,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 45,
"end": 52,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 45,
"end": 52,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 45,
"end": 52,
"ctxt": 0
},
"value": "article",
"raw": "article"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": ">",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 66,
"end": 68,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 69,
"end": 79,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 69,
"end": 76,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 69,
"end": 70,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 73,
"end": 76,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": "+",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 73,
"end": 76,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 73,
"end": 76,
"ctxt": 0
},
"value": "img",
"raw": "img"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 77,
"end": 79,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 80,
"end": 94,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 80,
"end": 91,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 80,
"end": 81,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 88,
"end": 91,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": "+",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 88,
"end": 91,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 88,
"end": 91,
"ctxt": 0
},
"value": "img",
"raw": "img"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 92,
"end": 94,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 95,
"end": 105,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 95,
"end": 102,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 95,
"end": 96,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 95,
"end": 96,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 95,
"end": 96,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": "~",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"value": "img",
"raw": "img"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 103,
"end": 105,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 106,
"end": 122,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 106,
"end": 119,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 106,
"end": 107,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 116,
"end": 119,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": "~",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 116,
"end": 119,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 116,
"end": 119,
"ctxt": 0
},
"value": "img",
"raw": "img"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 120,
"end": 122,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 123,
"end": 141,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 123,
"end": 138,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 123,
"end": 130,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 123,
"end": 130,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 123,
"end": 130,
"ctxt": 0
},
"value": "article",
"raw": "article"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": ">",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 133,
"end": 134,
"ctxt": 0
},
"value": "p",
"raw": "p"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": ">",
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"value": "a",
"raw": "a"
2021-10-06 18:32:31 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 139,
"end": 141,
"ctxt": 0
},
"items": []
}
}
]
}