File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed
src/compiler/phases/2-analyze/css
tests/css/samples/view-transition Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' svelte ' : patch
3+ ---
4+
5+ fix: allow global-like pseudo-selectors refinement
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ const css_visitors = {
133133
134134 node . metadata . is_global = node . selectors . length >= 1 && is_global ( node ) ;
135135
136- if ( node . selectors . length == = 1 ) {
136+ if ( node . selectors . length > = 1 ) {
137137 const first = node . selectors [ 0 ] ;
138138 node . metadata . is_global_like ||=
139139 ( first . type === 'PseudoClassSelector' && first . name === 'host' ) ||
Original file line number Diff line number Diff line change 88 ::view-transition-old {
99 animation-duration : 0.5s ;
1010 }
11+ ::view-transition-old : only-child {
12+ animation-duration : 0.5s ;
13+ }
1114 ::view-transition-new {
1215 animation-duration : 0.5s ;
1316 }
17+ ::view-transition-new : only-child {
18+ animation-duration : 0.5s ;
19+ }
1420 ::view-transition-image-pair {
1521 animation-duration : 0.5s ;
1622 }
Original file line number Diff line number Diff line change 88 ::view-transition-old {
99 animation-duration : 0.5s ;
1010 }
11+ ::view-transition-old :only-child {
12+ animation-duration : 0.5s ;
13+ }
1114 ::view-transition-new {
1215 animation-duration : 0.5s ;
1316 }
17+ ::view-transition-new :only-child {
18+ animation-duration : 0.5s ;
19+ }
1420 ::view-transition-image-pair {
1521 animation-duration : 0.5s ;
1622 }
You can’t perform that action at this time.
0 commit comments