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
The [=method steps=] for <dfn method for="DOMTransition">skipTransition()</dfn> are:
607
+
The [=method steps=] for <dfn method for="ViewTransition">skipTransition()</dfn> are:
608
608
609
-
1. If [=this=]'s [=DOMTransition/phase=] is not "`done`",
609
+
1. If [=this=]'s [=ViewTransition/phase=] is not "`done`",
610
610
then [=skip the page transition=] for [=this=]
611
611
with an "{{AbortError}}" {{DOMException}}.
612
612
</div>
@@ -656,18 +656,18 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
656
656
657
657
1. If |document|'s [=document/active DOM transition=] is not null, then:
658
658
659
-
1. If |document|'s [=document/active DOM transition=]'s [=DOMTransition/phase=] is "`pending-capture`", then [=perform an outgoing capture=] with |document|'s [=document/active DOM transition=].
659
+
1. If |document|'s [=document/active DOM transition=]'s [=ViewTransition/phase=] is "`pending-capture`", then [=perform an outgoing capture=] with |document|'s [=document/active DOM transition=].
660
660
661
-
1. Otherwise, if |document|'s [=document/active DOM transition=]'s [=DOMTransition/phase=] is "`animating`", then [=update transition DOM=] for |document|'s [=document/active DOM transition=].
661
+
1. Otherwise, if |document|'s [=document/active DOM transition=]'s [=ViewTransition/phase=] is "`animating`", then [=update transition DOM=] for |document|'s [=document/active DOM transition=].
662
662
</div>
663
663
664
664
## [=Perform an outgoing capture=] ## {#perform-an-outgoing-capture-algorithm}
665
665
666
666
<div algorithm>
667
-
To <dfn>perform an outgoing capture</dfn> given a {{DOMTransition}} |transition|,
667
+
To <dfn>perform an outgoing capture</dfn> given a {{ViewTransition}} |transition|,
668
668
perform the following steps:
669
669
670
-
1. Let |taggedElements| be |transition|'s [=DOMTransition/tagged elements=].
670
+
1. Let |taggedElements| be |transition|'s [=ViewTransition/tagged elements=].
671
671
672
672
1. Let |usedTransitionTags| be a new [=/set=] of strings.
673
673
@@ -740,25 +740,25 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
740
740
Note: A task is queued here because the texture read back in [=capturing the image=] may be async,
741
741
although the render steps in the HTML spec act as if it's synchronous.
742
742
743
-
1. If |transition|'s [=DOMTransition/phase=] is "`done`", then abort these steps.
743
+
1. If |transition|'s [=ViewTransition/phase=] is "`done`", then abort these steps.
744
744
745
745
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
746
746
747
747
1. [=Call the DOM update callback=] of |transition|.
748
748
749
-
1. [=promise/React=] to |transition|'s [=DOMTransition/DOM updated promise=]:
749
+
1. [=promise/React=] to |transition|'s [=ViewTransition/DOM updated promise=]:
750
750
751
751
* If the promise does not settle within an implementation-defined timeout, then:
752
752
753
-
1. If |transition|'s [=DOMTransition/phase=] is "`done`", then return.
753
+
1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return.
754
754
755
755
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
756
756
757
757
1. [=Skip the page transition=] |transition| with a "{{TimeoutError}}" {{DOMException}}.
758
758
759
759
* If the promise was fulfilled, then:
760
760
761
-
1. If |transition|'s [=DOMTransition/phase=] is "`done`", then return.
761
+
1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return.
762
762
763
763
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
764
764
@@ -809,11 +809,11 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
809
809
810
810
Note: The frame-by-frame parts of the animation are handled in [=update transition DOM=].
811
811
812
-
1. [=Resolve=][=DOMTransition/ready promise=].
812
+
1. [=Resolve=][=ViewTransition/ready promise=].
813
813
814
814
* If the promise was rejected with reason |r|, then:
815
815
816
-
1. If |transition|'s [=DOMTransition/phase=] is "`done`", then return.
816
+
1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return.
817
817
818
818
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
819
819
@@ -823,33 +823,33 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
823
823
## Skip the page transition ## {#skip-the-page-transition-algorithm}
824
824
825
825
<div algorithm>
826
-
To <dfn>skip the page transition</dfn> for {{DOMTransition}} |transition| with reason |reason|:
826
+
To <dfn>skip the page transition</dfn> for {{ViewTransition}} |transition| with reason |reason|:
827
827
828
828
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
829
829
830
830
1. [=Assert=]: |document|'s [=document/active DOM transition=] is |transition|.
831
831
832
-
1. [=Assert=]: |transition|'s [=DOMTransition/phase=] is not "`done`".
832
+
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
833
833
834
-
1. If |transition|'s [=DOMTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition|.
834
+
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition|.
835
835
836
836
1. Set [=document/transition suppressing rendering=] to false.
837
837
838
-
1. If |transition|'s [=DOMTransition/phase=] is equal to or [=phases/after=] "`animating`", then:
838
+
1. If |transition|'s [=ViewTransition/phase=] is equal to or [=phases/after=] "`animating`", then:
839
839
840
840
1. Remove all associated [=page-transition pseudo-elements=] from |document|.
841
841
842
842
Issue: There needs to be a definition/link for "remove".
843
843
844
844
Issue: There needs to be a definition/link for "associated".
845
845
846
-
1. Set |transition|'s [=DOMTransition/phase=] to "`done`".
846
+
1. Set |transition|'s [=ViewTransition/phase=] to "`done`".
847
847
848
848
1. Set |document|'s [=document/active DOM transition=] to null.
849
849
850
-
1. [=Reject=] |transition|'s [=DOMTransition/ready promise=] with |reason|.
850
+
1. [=Reject=] |transition|'s [=ViewTransition/ready promise=] with |reason|.
851
851
852
-
1. [=Reject=] |transition|'s [=DOMTransition/finished promise=] with |reason|.
852
+
1. [=Reject=] |transition|'s [=ViewTransition/finished promise=] with |reason|.
853
853
</div>
854
854
855
855
## [=Capture the image=] ## {#capture-the-image-algorithm}
@@ -890,7 +890,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
0 commit comments