swc/crates/swc_css_parser/tests/recovery/ie-progid/output.json

665 lines
18 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 242,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 241,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 241,
"ctxt": 0
},
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 21,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 8,
"end": 14,
"ctxt": 0
},
"value": "filter",
"raw": "filter"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 15,
"end": 118,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"token": {
"Ident": {
"value": "progid",
"raw": "progid"
}
}
},
{
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 22,
"end": 38,
"ctxt": 0
},
"token": {
"Ident": {
"value": "DXImageTransform",
"raw": "DXImageTransform"
}
}
},
{
"span": {
"start": 38,
"end": 39,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 39,
"end": 48,
"ctxt": 0
},
"token": {
"Ident": {
"value": "Microsoft",
"raw": "Microsoft"
}
}
},
{
"span": {
"start": 48,
"end": 49,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 49,
"end": 58,
"ctxt": 0
},
"token": {
"Function": {
"value": "gradient",
"raw": "gradient"
}
}
},
{
"span": {
"start": 58,
"end": 71,
"ctxt": 0
},
"token": {
"Ident": {
"value": "startColorstr",
"raw": "startColorstr"
}
}
},
{
"span": {
"start": 71,
"end": 72,
"ctxt": 0
},
"token": {
"Delim": {
"value": "="
}
}
},
{
"span": {
"start": 72,
"end": 81,
"ctxt": 0
},
"token": {
"Str": {
"value": "#4f4f4f",
"raw": "'#4f4f4f'"
}
}
},
{
"span": {
"start": 81,
"end": 82,
"ctxt": 0
},
"token": "Comma"
},
{
"span": {
"start": 82,
"end": 93,
"ctxt": 0
},
"token": {
"Ident": {
"value": "endColorstr",
"raw": "endColorstr"
}
}
},
{
"span": {
"start": 93,
"end": 94,
"ctxt": 0
},
"token": {
"Delim": {
"value": "="
}
}
},
{
"span": {
"start": 94,
"end": 103,
"ctxt": 0
},
"token": {
"Str": {
"value": "#292929",
"raw": "'#292929'"
}
}
},
{
"span": {
"start": 103,
"end": 104,
"ctxt": 0
},
"token": "Comma"
},
{
"span": {
"start": 104,
"end": 116,
"ctxt": 0
},
"token": {
"Ident": {
"value": "GradientType",
"raw": "GradientType"
}
}
},
{
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"token": {
"Delim": {
"value": "="
}
}
},
{
"span": {
"start": 117,
"end": 118,
"ctxt": 0
},
"token": {
"Num": {
"value": 0.0,
"raw": "0",
"type": "integer"
}
}
}
]
}
],
"important": null
},
{
"type": "Tokens",
"span": {
"start": 118,
"end": 119,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 118,
"end": 119,
"ctxt": 0
},
"token": "RParen"
}
]
},
{
"type": "Declaration",
"span": {
"start": 125,
"end": 139,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 125,
"end": 131,
"ctxt": 0
},
"value": "filter",
"raw": "filter"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 133,
"end": 185,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 133,
"end": 139,
"ctxt": 0
},
"token": {
"Ident": {
"value": "progid",
"raw": "progid"
}
}
},
{
"span": {
"start": 139,
"end": 140,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 140,
"end": 156,
"ctxt": 0
},
"token": {
"Ident": {
"value": "DXImageTransform",
"raw": "DXImageTransform"
}
}
},
{
"span": {
"start": 156,
"end": 157,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 157,
"end": 166,
"ctxt": 0
},
"token": {
"Ident": {
"value": "Microsoft",
"raw": "Microsoft"
}
}
},
{
"span": {
"start": 166,
"end": 167,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 167,
"end": 172,
"ctxt": 0
},
"token": {
"Function": {
"value": "Blur",
"raw": "Blur"
}
}
},
{
"span": {
"start": 172,
"end": 183,
"ctxt": 0
},
"token": {
"Ident": {
"value": "pixelradius",
"raw": "pixelradius"
}
}
},
{
"span": {
"start": 183,
"end": 184,
"ctxt": 0
},
"token": {
"Delim": {
"value": "="
}
}
},
{
"span": {
"start": 184,
"end": 185,
"ctxt": 0
},
"token": {
"Num": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
}
]
}
],
"important": null
},
{
"type": "Tokens",
"span": {
"start": 185,
"end": 238,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 185,
"end": 186,
"ctxt": 0
},
"token": "RParen"
},
{
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 187,
"end": 193,
"ctxt": 0
},
"token": {
"Ident": {
"value": "progid",
"raw": "progid"
}
}
},
{
"span": {
"start": 193,
"end": 194,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 194,
"end": 210,
"ctxt": 0
},
"token": {
"Ident": {
"value": "DXImageTransform",
"raw": "DXImageTransform"
}
}
},
{
"span": {
"start": 210,
"end": 211,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 211,
"end": 220,
"ctxt": 0
},
"token": {
"Ident": {
"value": "Microsoft",
"raw": "Microsoft"
}
}
},
{
"span": {
"start": 220,
"end": 221,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 221,
"end": 227,
"ctxt": 0
},
"token": {
"Function": {
"value": "Wheel",
"raw": "Wheel"
}
}
},
{
"span": {
"start": 227,
"end": 235,
"ctxt": 0
},
"token": {
"Ident": {
"value": "duration",
"raw": "duration"
}
}
},
{
"span": {
"start": 235,
"end": 236,
"ctxt": 0
},
"token": {
"Delim": {
"value": "="
}
}
},
{
"span": {
"start": 236,
"end": 237,
"ctxt": 0
},
"token": {
"Num": {
"value": 3.0,
"raw": "3",
"type": "integer"
}
}
},
{
"span": {
"start": 237,
"end": 238,
"ctxt": 0
},
"token": "RParen"
}
]
}
]
}
}
]
}