We iterate in paint order to ensure that this order is cached in |namedElements|.
@@ -1335,7 +1348,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
Note: [=box fragment=] here does not refer to fragmentation of
inline boxes across
line boxes.
Such inlines can participate in a transition.
- 1. Let |transitionName| be the [=computed value=] of 'view-transition-name' for |element|.
+ 1. Let |transitionName| be the |element|'s [=document-scoped view transition name=].
1. If |transitionName| is ''view-transition-name/none'',
or |element| is [=element-not-rendered|not rendered=],
@@ -1403,12 +1416,11 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
1. [=list/For each=] |element| of every [=/element=] that is [=/connected=],
and has a [=node document=] equal to |document|,
- and has a [=tree context=] equal to |document|,
in [paint order](https://drafts.csswg.org/css2/#painting-order):
1. If any [=flat tree=] ancestor of this |element| [=skips its contents=], then [=continue=].
- 1. Let |transitionName| be the [=computed value=] of 'view-transition-name' for |element|.
+ 1. Let |transitionName| be |element|'s [=document-scoped view transition name=].
1. If |transitionName| is ''view-transition-name/none'',
or |element| is [=element-not-rendered|not rendered=],
@@ -1966,6 +1978,7 @@ Changes from
issue #10177.
* Fix algorithm for dispatching updateDOMCallback promise.
* Scope view transition names to matching tree context. See
issue 10145.
+* Fix scoping to match name instead of element. See
issue 10145.