Skip to content

Commit

Permalink
[css-view-transitions] Clear captured flag on error. (#11061)
Browse files Browse the repository at this point in the history
Fixes #11058
  • Loading branch information
emilio authored Oct 21, 2024
1 parent b924e45 commit f894d41
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion css-view-transitions-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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|.

Expand Down

0 comments on commit f894d41

Please sign in to comment.