Skip to content

Commit 6d1a676

Browse files
committed
changeset and test output
1 parent 0d5e05a commit 6d1a676

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

.changeset/metal-beers-learn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: improve pseudo elements parsing
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"css": {
3+
"type": "Style",
4+
"start": 0,
5+
"end": 165,
6+
"attributes": [],
7+
"children": [
8+
{
9+
"type": "Rule",
10+
"prelude": {
11+
"type": "SelectorList",
12+
"start": 9,
13+
"end": 38,
14+
"children": [
15+
{
16+
"type": "Selector",
17+
"start": 9,
18+
"end": 38,
19+
"children": [
20+
{
21+
"type": "PseudoClassSelector",
22+
"name": "root",
23+
"args": null,
24+
"start": 9,
25+
"end": 14
26+
},
27+
{
28+
"type": "PseudoElementSelector",
29+
"name": "view-transition-old",
30+
"args": {
31+
"type": "SelectorList",
32+
"start": 36,
33+
"end": 37,
34+
"children": [
35+
{
36+
"type": "Selector",
37+
"start": 36,
38+
"end": 37,
39+
"children": [
40+
{
41+
"type": "TypeSelector",
42+
"name": "*",
43+
"start": 36,
44+
"end": 37
45+
}
46+
]
47+
}
48+
]
49+
},
50+
"start": 14,
51+
"end": 38
52+
}
53+
]
54+
}
55+
]
56+
},
57+
"block": {
58+
"type": "Block",
59+
"start": 39,
60+
"end": 156,
61+
"children": [
62+
{
63+
"type": "Declaration",
64+
"start": 42,
65+
"end": 153,
66+
"property": "animation",
67+
"value": "90ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left"
68+
}
69+
]
70+
},
71+
"start": 9,
72+
"end": 156
73+
}
74+
],
75+
"content": {
76+
"start": 7,
77+
"end": 157,
78+
"styles": "\n\t:root::view-transition-old(*) {\n\tanimation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;\n}\n"
79+
}
80+
},
81+
"js": [],
82+
"start": null,
83+
"end": null,
84+
"type": "Root",
85+
"fragment": {
86+
"type": "Fragment",
87+
"nodes": [],
88+
"transparent": false
89+
},
90+
"options": null
91+
}

0 commit comments

Comments
 (0)