From f894d41d3ce3f75b82339aa454af4e1b7ac2a325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 21 Oct 2024 21:13:30 +0200 Subject: [PATCH] [css-view-transitions] Clear captured flag on error. (#11061) Fixes #11058 --- css-view-transitions-1/Overview.bs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/css-view-transitions-1/Overview.bs b/css-view-transitions-1/Overview.bs index 4a706af519d..44ce904469e 100644 --- a/css-view-transitions-1/Overview.bs +++ b/css-view-transitions-1/Overview.bs @@ -1352,7 +1352,13 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface; or |element| is [=element-not-rendered|not rendered=], then [=continue=]. - 1. If |usedTransitionNames| [=list/contains=] |transitionName|, then return failure. + 1. If |usedTransitionNames| [=list/contains=] |transitionName|, then: + + 1. [=list/For each=] |element| in |captureElements|: + + 1. Set |element|'s [=captured in a view transition=] to false. + + 1. return failure. 1. [=set/Append=] |transitionName| to |usedTransitionNames|.