@@ -478,7 +478,7 @@ Note: as per default behavior, the ''@view-transition'' rule can be nested insid
478478 A {{Document}} additionaly has:
479479
480480 <dl dfn-for=document>
481- : <dfn export>inbound view- transition steps</dfn>
481+ : <dfn export>inbound view transition steps</dfn>
482482 :: Null or an algorithm accepting nothing, initially null.
483483 </dl>
484484
@@ -637,10 +637,16 @@ When capturing the old or new state for an element, perform the following steps
637637
638638 1. Let |initialSnapshotContainingBlockSize| to |outboundTransition|'s [=ViewTransition/initial snapshot containing block size=] .
639639
640- 1. Set |newDocument|'s [=inbound view- transition steps=] to the following steps:
640+ 1. Set |newDocument|'s [=inbound view transition steps=] to the following steps:
641641
642642 1. [=Assert=] : |newDocument| is [=fully active=] .
643643
644+ 1. Set |newDocument|'s [=inbound view transition steps=] to null.
645+
646+ 1. If |newDocument|'s [=active view transition=] is not null, then return.
647+
648+ Note: this means that starting a same-document transition before revealing the document would cancel a pending cross-document transition.
649+
644650 1. Let |inboundTransition| be a new {{ViewTransition}} in |newDocument|'s [=relevant Realm=] ,
645651 whose [=ViewTransition/named elements=] is |clonedNamedElements|,
646652 and [=ViewTransition/initial snapshot containing block size=] is |initialSnapshotContainingBlockSize|.
@@ -684,9 +690,9 @@ When capturing the old or new state for an element, perform the following steps
684690 <div algorithm>
685691 To <dfn export>resolve cross-document view-transition</dfn> for {{Document}} |document|:
686692
687- 1. If |document|'s [=inbound view- transition steps=] is null, then return.
693+ 1. If |document|'s [=inbound view transition steps=] is null, then return.
688694
689- 1. Let |transition| be the result of running |document|'s [=inbound view- transition steps=] .
695+ 1. Let |transition| be the result of running |document|'s [=inbound view transition steps=] .
690696
691697 1. If |transition| is null then return null.
692698
0 commit comments