Skip to content

Commit f894d41

Browse files
authored
[css-view-transitions] Clear captured flag on error. (#11061)
Fixes #11058
1 parent b924e45 commit f894d41

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,13 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
13521352
or |element| is [=element-not-rendered|not rendered=],
13531353
then [=continue=].
13541354

1355-
1. If |usedTransitionNames| [=list/contains=] |transitionName|, then return failure.
1355+
1. If |usedTransitionNames| [=list/contains=] |transitionName|, then:
1356+
1357+
1. [=list/For each=] |element| in |captureElements|:
1358+
1359+
1. Set |element|'s [=captured in a view transition=] to false.
1360+
1361+
1. return failure.
13561362

13571363
1. [=set/Append=] |transitionName| to |usedTransitionNames|.
13581364

0 commit comments

Comments
 (0)