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
`document` is used without being declared - it's ambiguous as the
surrounding steps have `oldDocument` and `newDocument`. Update to use
the (hopefully) correct one.
Copy file name to clipboardExpand all lines: css-view-transitions-2/Overview.bs
+3-3
Original file line number
Diff line number
Diff line change
@@ -460,7 +460,7 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
460
460
Note: this means that any running transition would be skipped when the document is ready
461
461
to unload.
462
462
463
-
1. Set |document|'s [=auto-skip view transitions=] to true.
463
+
1. Set |oldDocument|'s [=auto-skip view transitions=] to true.
464
464
465
465
Note: this means that calling {{Document/startViewTransition()}} while capturing the old document for a cross-document view-transition would run the callback but skip the animation.
466
466
@@ -478,7 +478,7 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
478
478
Note: The ViewTransition object on the old Document should be destroyed after its state has been copied to the new Document below.
479
479
We explicitly clear it here since the old Document may be cached by the UA.
480
480
481
-
1. Set |document|'s [=auto-skip view transitions=] to false.
481
+
1. Set |oldDocument|'s [=auto-skip view transitions=] to false.
482
482
483
483
1. [=Queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=],
484
484
to perform the following steps:
@@ -499,7 +499,7 @@ The {{CSSViewTransitionRule}} represents a ''@view-transition'' rule.
499
499
Note: The |inboundTransition| is activated after the dispatch of {{Window/pagereveal}} to ensure mutations made in this event apply to the captured new state.
500
500
501
501
1. At any given time, the UA may decide to skip |inboundTransition|, e.g. after an [=implementation-defined=] timeout.
502
-
To do so, the UA should [=queue a global task=] on the [=DOM manipulation task source=] given |document|'s [=relevant global object=] to perform the following step:
502
+
To do so, the UA should [=queue a global task=] on the [=DOM manipulation task source=] given |newDocument|'s [=relevant global object=] to perform the following step:
503
503
If |transition|'s [=ViewTransition/phase=] is not "`done`", then [=skip the view transition=] |transition| with a "{{TimeoutError}}" {{DOMException}}.
504
504
505
505
Note: |outboundTransition| is not exposed to JavaScript, it is used only for capturing
0 commit comments