Skip to content

Commit 6a51bc7

Browse files
Remove DOM references (#8574)
1 parent 7336595 commit 6a51bc7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
113113

114114
*This section is non-normative.*
115115

116-
View Transitions is a feature that allows DOM changes to smoothly animate between states.
116+
View Transitions is a feature that allows developers to create animated transitions between visual states of the [=/document=].
117117

118118
## Separating transitions from DOM updates ## {#separating-transitions}
119119

@@ -858,7 +858,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
858858
A {{Document}} additionally has:
859859

860860
<dl dfn-for=document>
861-
: <dfn>active DOM transition</dfn>
861+
: <dfn>active view transition</dfn>
862862
:: a {{ViewTransition}} or null. Initially null.
863863

864864
: <dfn>transition suppressing rendering</dfn>
@@ -873,7 +873,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
873873
: <dfn>show view-transition root pseudo-element</dfn>
874874
:: A boolean. Initially false.
875875

876-
When this is true, [=this=]'s [=active DOM transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
876+
When this is true, [=this=]'s [=active view transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
877877
and [=this=]'s [=document element=] is its [=originating element=].
878878

879879
Note: The position of the [=ViewTransition/transition root pseudo-element=] within the [=document element=] does not matter, as the [=ViewTransition/transition root pseudo-element=]'s [=containing block=] is the [=snapshot root=].
@@ -916,15 +916,15 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
916916

917917
1. Let |document| be [=this's=] [=relevant global object's=] [=associated document=].
918918

919-
1. If |document|'s [=active DOM transition=] is not null,
920-
then [=skip the view transition=] |document|'s [=active DOM transition=]
919+
1. If |document|'s [=active view transition=] is not null,
920+
then [=skip the view transition=] |document|'s [=active view transition=]
921921
with an "{{AbortError}}" {{DOMException}} in [=this's=] [=relevant Realm=].
922922

923923
Note: This can result in two asynchronous [=ViewTransition/update callbacks=] running concurrently.
924-
One for the |document|'s current [=active DOM transition=], and another for this |transition|.
924+
One for the |document|'s current [=active view transition=], and another for this |transition|.
925925
As per the [design of this feature](#transitions-as-enhancements), it's assumed that the developer is using another feature or framework to correctly schedule these DOM changes.
926926

927-
1. Set |document|'s [=active DOM transition=] to |transition|.
927+
1. Set |document|'s [=active view transition=] to |transition|.
928928

929929
Note: The process continues in [=setup view transition=], via [=perform pending transition operations=], which is called in [[#monkey-patch-to-rendering-algorithm]].
930930

@@ -1085,13 +1085,13 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
10851085
<div algorithm>
10861086
To <dfn>perform pending transition operations</dfn> given a {{Document}} |document|, perform the following steps:
10871087

1088-
1. If |document|'s [=document/active DOM transition=] is not null, then:
1088+
1. If |document|'s [=document/active view transition=] is not null, then:
10891089

1090-
1. If |document|'s [=document/active DOM transition=]'s [=ViewTransition/phase=] is "`pending-capture`",
1091-
then [=setup view transition=] with |document|'s [=document/active DOM transition=].
1090+
1. If |document|'s [=document/active view transition=]'s [=ViewTransition/phase=] is "`pending-capture`",
1091+
then [=setup view transition=] with |document|'s [=document/active view transition=].
10921092

1093-
1. Otherwise, if |document|'s [=document/active DOM transition=]'s [=ViewTransition/phase=] is "`animating`",
1094-
then [=handle transition frame=] for |document|'s [=document/active DOM transition=].
1093+
1. Otherwise, if |document|'s [=document/active view transition=]'s [=ViewTransition/phase=] is "`animating`",
1094+
then [=handle transition frame=] for |document|'s [=document/active view transition=].
10951095
</div>
10961096

10971097
## [=Setup view transition=] ## {#setup-view-transition-algorithm}
@@ -1464,7 +1464,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
14641464

14651465
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
14661466

1467-
1. [=Assert=]: |document|'s [=document/active DOM transition=] is |transition|.
1467+
1. [=Assert=]: |document|'s [=document/active view transition=] is |transition|.
14681468

14691469
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
14701470

@@ -1723,7 +1723,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
17231723

17241724
1. Let |document| be |transition|'s [=relevant global object's=] [=associated document=].
17251725

1726-
1. [=Assert=]: |document|'s [=document/active DOM transition=] is |transition|.
1726+
1. [=Assert=]: |document|'s [=document/active view transition=] is |transition|.
17271727

17281728
1. [=list/For each=] |capturedElement| of |transition|'s [=ViewTransition/named elements=]' [=map/values=]:
17291729

@@ -1735,7 +1735,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
17351735

17361736
1. Set |document|'s [=document/show view-transition root pseudo-element=] to false.
17371737

1738-
1. Set |document|'s [=document/active DOM transition=] to null.
1738+
1. Set |document|'s [=document/active view transition=] to null.
17391739
</div>
17401740

17411741
<h2 id="priv" class="no-num">Privacy Considerations</h2>

0 commit comments

Comments
 (0)