You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:: 'border-width'[=used value=] (top, right, bottom and left pixel values) or null, initially null.
2348
+
2349
+
: <dfn for="captured element">duplicate</dfn>
2350
+
:: A boolean, initiallly false.
2351
2351
</dl>
2352
2352
2353
2353
In addition, a [=captured element=] has the following <dfn for="captured element">style definitions</dfn>:
@@ -2483,6 +2483,10 @@ It has the following [=struct/items=]:
2483
2483
If failure is returned, then [=skip the view transition|skip=] |transition| with an "{{InvalidStateError}}" {{DOMException}} in |transition|'s [=relevant Realm=],
2484
2484
and return.
2485
2485
2486
+
1. [=list/Remove=] from |transition|'s [=ViewTransition/named elements=] every entry whose value's [=captured element/duplicate=] is true.
2487
+
2488
+
Note: User agents are encouraged to alert the developer that the duplicate was removed, e.g. via a console warning.
2489
+
2486
2490
1. [=list/For each=] |capturedElement| of |transition|'s [=ViewTransition/named elements=]'[=map/values=]:
2487
2491
2488
2492
1. If |capturedElement|'s [=captured element/new element=] is not null,
@@ -2512,8 +2516,6 @@ It has the following [=struct/items=]:
2512
2516
2513
2517
1. Let |namedElements| be |transition|'s [=ViewTransition/named elements=].
2514
2518
2515
-
1. Let |usedTransitionNames| be a new [=/set=] of strings.
2516
-
2517
2519
1. Let |captureElements| be a new [=/list=] of elements.
2518
2520
2519
2521
1. If the [=snapshot containing block size=] exceeds an [=implementation-defined=] maximum, then return failure.
@@ -2548,22 +2550,14 @@ It has the following [=struct/items=]:
2548
2550
or |element| is [=element-not-rendered|not rendered=],
2549
2551
then [=continue=].
2550
2552
2551
-
1. If |usedTransitionNames| [=list/contains=] |transitionName|, then:
2552
-
2553
-
1. [=list/For each=] |element| in |captureElements|:
2554
-
2555
-
1. Set |element|'s [=captured in a view transition=] to false.
2556
-
2557
-
1. Return failure.
2553
+
1. If |namedElements|[|transitionName|] exists, then set |namedElements|[|transitionName|]'s [=captured element/duplicate=] to true and [=continue=].
2558
2554
2559
2555
1. If <em>any other</em>[=active view transition=] contains |element|
2560
2556
in its [=captured elements=],
2561
2557
then for each such [=active view transition=],
2562
2558
in [=tree order=] of their corresponding [=ViewTransition/root elements=],
2563
2559
[=skip the view transition|skip=] that view transition with an "{{AbortError}}" {{DOMException}} in |document|’s [=relevant Realm=].
2564
2560
2565
-
1. [=set/Append=] |transitionName| to |usedTransitionNames|.
2566
-
2567
2561
1. Set |element|'s [=captured in a view transition=] to true.
2568
2562
2569
2563
1. [=list/Append=] |element| to |captureElements|.
@@ -2646,6 +2640,8 @@ It has the following [=struct/items=]:
2646
2640
This implies than names which only exist in the new DOM (entry animations) will be painted on top of names only in the old DOM (exit animations) and names in both DOMs (paired animations).
2647
2641
This might not be the right layering for all cases. See <a href="https://github.com/w3c/csswg-drafts/issues/8941">issue 8941</a>.
2648
2642
2643
+
1. If |namedElements|[|transitionName|]'s [=new element=] is not null, then set |namedElements|[|transitionName|]'s [=captured element/duplicate=] to true.
2644
+
2649
2645
1. Set |namedElements|[|transitionName|]'s [=new element=] to |element|.
0 commit comments