-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 types
- Loading branch information
1 parent
de315d8
commit cd25065
Showing
8 changed files
with
62 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"svelte": patch | ||
--- | ||
|
||
feat: leave view transition pseudo selectors untouched |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packages/svelte/tests/css/samples/view-transition/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/svelte/tests/css/samples/view-transition/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters