- To
perform an outgoing capture given a {{DOMTransition}} |transition|,
+ To
perform an outgoing capture given a {{ViewTransition}} |transition|,
perform the following steps:
- 1. Let |taggedElements| be |transition|'s [=DOMTransition/tagged elements=].
+ 1. Let |taggedElements| be |transition|'s [=ViewTransition/tagged elements=].
1. Let |usedTransitionTags| be a new [=/set=] of strings.
@@ -740,17 +740,17 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
Note: A task is queued here because the texture read back in [=capturing the image=] may be async,
although the render steps in the HTML spec act as if it's synchronous.
- 1. If |transition|'s [=DOMTransition/phase=] is "`done`", then abort these steps.
+ 1. If |transition|'s [=ViewTransition/phase=] is "`done`", then abort these steps.
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
1. [=Call the DOM update callback=] of |transition|.
- 1. [=promise/React=] to |transition|'s [=DOMTransition/DOM updated promise=]:
+ 1. [=promise/React=] to |transition|'s [=ViewTransition/DOM updated promise=]:
* If the promise does not settle within an implementation-defined timeout, then:
- 1. If |transition|'s [=DOMTransition/phase=] is "`done`", then return.
+ 1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return.
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
@@ -758,7 +758,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
* If the promise was fulfilled, then:
- 1. If |transition|'s [=DOMTransition/phase=] is "`done`", then return.
+ 1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return.
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
@@ -809,11 +809,11 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
Note: The frame-by-frame parts of the animation are handled in [=update transition DOM=].
- 1. [=Resolve=] [=DOMTransition/ready promise=].
+ 1. [=Resolve=] [=ViewTransition/ready promise=].
* If the promise was rejected with reason |r|, then:
- 1. If |transition|'s [=DOMTransition/phase=] is "`done`", then return.
+ 1. If |transition|'s [=ViewTransition/phase=] is "`done`", then return.
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point.
@@ -823,19 +823,19 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
## Skip the page transition ## {#skip-the-page-transition-algorithm}
- To skip the page transition for {{DOMTransition}} |transition| with reason |reason|:
+ To skip the page transition for {{ViewTransition}} |transition| with reason |reason|:
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
1. [=Assert=]: |document|'s [=document/active DOM transition=] is |transition|.
- 1. [=Assert=]: |transition|'s [=DOMTransition/phase=] is not "`done`".
+ 1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
- 1. If |transition|'s [=DOMTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition|.
+ 1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition|.
1. Set [=document/transition suppressing rendering=] to false.
- 1. If |transition|'s [=DOMTransition/phase=] is equal to or [=phases/after=] "`animating`", then:
+ 1. If |transition|'s [=ViewTransition/phase=] is equal to or [=phases/after=] "`animating`", then:
1. Remove all associated [=page-transition pseudo-elements=] from |document|.
@@ -843,13 +843,13 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
Issue: There needs to be a definition/link for "associated".
- 1. Set |transition|'s [=DOMTransition/phase=] to "`done`".
+ 1. Set |transition|'s [=ViewTransition/phase=] to "`done`".
1. Set |document|'s [=document/active DOM transition=] to null.
- 1. [=Reject=] |transition|'s [=DOMTransition/ready promise=] with |reason|.
+ 1. [=Reject=] |transition|'s [=ViewTransition/ready promise=] with |reason|.
- 1. [=Reject=] |transition|'s [=DOMTransition/finished promise=] with |reason|.
+ 1. [=Reject=] |transition|'s [=ViewTransition/finished promise=] with |reason|.
## [=Capture the image=] ## {#capture-the-image-algorithm}
@@ -890,7 +890,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
## [=Update transition DOM=] ## {#update-transition-dom-algorithm}
- To
update transition DOM given a {{DOMTransition}} |transition|:
+ To
update transition DOM given a {{ViewTransition}} |transition|:
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
@@ -903,7 +903,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
Issue: There needs to be a definition/link for "active animation".
- 1. Set |transition|'s [=DOMTransition/phase=] to "`done`".
+ 1. Set |transition|'s [=ViewTransition/phase=] to "`done`".
1. Remove all associated [=page-transition pseudo-elements=] from |document|.
@@ -913,11 +913,11 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
1. Set |document|'s [=document/active DOM transition=] to null.
- 1. [=Resolve=] |transition|'s[=DOMTransition/finished promise=].
+ 1. [=Resolve=] |transition|'s[=ViewTransition/finished promise=].
1. Return.
- 1. [=map/For each=] |tag| -> |capturedElement| of |transition|'s [=DOMTransition/tagged elements=]:
+ 1. [=map/For each=] |tag| -> |capturedElement| of |transition|'s [=ViewTransition/tagged elements=]:
1. If |capturedElement| has an "incoming element", run [=capture the image=]
on |capturedElement|'s "incoming element" and update the displayed
@@ -957,7 +957,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
## [=Animate a page transition=] ## {#animate-a-page-transition-algorithm}
- To
animate a page transition given a {{DOMTransition}} |transition|:
+ To
animate a page transition given a {{ViewTransition}} |transition|:
1. Generate a <
> named "page-transition-fade-out" in
[=user-agent origin=] as follows:
@@ -989,7 +989,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
}
- 1. [=map/For each=] |tag| -> |capturedElement| of |transition|'s [=DOMTransition/tagged elements=]:
+ 1. [=map/For each=] |tag| -> |capturedElement| of |transition|'s [=ViewTransition/tagged elements=]:
1. If neither of |capturedElement|'s [=captured element/outgoing image=] or [=captured element/incoming element=] is null:
@@ -1021,7 +1021,7 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
- 1. Set |transition|'s [=DOMTransition/phase=] to "`animating`".
+ 1. Set |transition|'s [=ViewTransition/phase=] to "`animating`".
Issue: How are keyframes scoped to user-agent origin? We could decide
scope based on whether `animation-name` in the computed style
@@ -1034,11 +1034,11 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
## [=Create transition pseudo-elements=] ## {#create-transition-pseudo-elements-algorithm}
- To create transition pseudo-elements for a {{DOMTransition}} |transition|:
+ To create transition pseudo-elements for a {{ViewTransition}} |transition|:
1. Let |transitionRoot| be the result of creating a new ''::page-transition'' pseudo-element.
- 1. [=map/For each=] |transitionTag| → |capturedElement| of |transition|'s [=DOMTransition/tagged elements=]:
+ 1. [=map/For each=] |transitionTag| → |capturedElement| of |transition|'s [=ViewTransition/tagged elements=]:
1. Let |container| be the result of creating a new ''::page-transition-container'' pseudo-element with the tag |transitionTag|.
@@ -1113,18 +1113,18 @@ The {{DOMTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=DOM
- To call the DOM update callback of a {{DOMTransition}} |transition|:
+ To call the DOM update callback of a {{ViewTransition}} |transition|:
- 1. [=Assert=]: |transition|'s [=DOMTransition/phase=] is [=phases/before=] "`dom-update-callback-called`".
+ 1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`".
- 1. Let |callbackPromise| be the result of [=/invoking=] |transition|'s [=DOMTransition/DOM update callback=].
+ 1. Let |callbackPromise| be the result of [=/invoking=] |transition|'s [=ViewTransition/DOM update callback=].
- 1. Set |transition|'s [=DOMTransition/phase=] to "`dom-update-callback-called`".
+ 1. Set |transition|'s [=ViewTransition/phase=] to "`dom-update-callback-called`".
1. [=promise/React=] to |callbackPromise|:
- * If |callbackPromise| was fulfilled, then [=resolve=] |transition|'s [=DOMTransition/DOM updated promise=].
+ * If |callbackPromise| was fulfilled, then [=resolve=] |transition|'s [=ViewTransition/DOM updated promise=].
- * If |callbackPromise| was rejected with reason |r|, then [=reject=] |transition|'s [=DOMTransition/DOM updated promise=] with |r|.
+ * If |callbackPromise| was rejected with reason |r|, then [=reject=] |transition|'s [=ViewTransition/DOM updated promise=] with |r|.