mirror of https://github.com/sveltejs/svelte
feat: leave view transition pseudo selectors untouched (#11375)
* feat: leave view transition pseudo selectors untouched view transition pseude selectors are global-like, i.e. they shouldn't be scoped or treated as unused. In the process of adding support for this, is_root and is_host were consolidated into is_global_like because their usage locations didn't need any differentiation between them (same for the new view transition treatment) closes #9127 * regenerate typespull/11381/head
parent
de315d84eb
commit
cd2506535f
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"svelte": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat: leave view transition pseudo selectors untouched
|
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
::view-transition {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-group(foo) {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-old {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-new {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-image-pair {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
<style>
|
||||||
|
::view-transition {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-group(foo) {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-old {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-new {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
::view-transition-image-pair {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue