From 5e0c951b58a98feed034e2bb92f25ae6d0616855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Tue, 16 Sep 2025 10:20:40 -0400 Subject: [PATCH] Add forwards fill mode to animations in view transition fixture (#34502) It turns out that View Transitions can sometimes overshoot and then we need to ensure it fills. It can otherwise sometimes flash in Chrome. This is something users might hit as well. --- .../view-transition/src/components/Transitions.module.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fixtures/view-transition/src/components/Transitions.module.css b/fixtures/view-transition/src/components/Transitions.module.css index 8c7b66b446..0cfe870cfb 100644 --- a/fixtures/view-transition/src/components/Transitions.module.css +++ b/fixtures/view-transition/src/components/Transitions.module.css @@ -56,10 +56,10 @@ } ::view-transition-new(.enter-slide-right):only-child { - animation: enter-slide-right ease-in 0.25s; + animation: enter-slide-right ease-in 0.25s forwards; } ::view-transition-old(.exit-slide-left):only-child { - animation: exit-slide-left ease-in 0.25s; + animation: exit-slide-left ease-in 0.25s forwards; } :root:active-view-transition-type(navigation-back) {