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
## Active View Transition Pseudo-class '':active-view-transition()''' ## {#the-active-view-transition-pseudo}
212
+
213
+
The <dfn id='active-view-transition-pseudo'>:active-view-transition(<<vt-type-selector>>)</dfn> pseudo-class applies to the root element of the document, if it has a matching [=active view transition=].
An ''::active-view-transition()'' pseudo-class matches the [=document element=] when it has an non-null [=active view transition=] |viewTransition|, for which any of the following are true:
222
+
223
+
* The <<vt-type-selector>> is ''*''
224
+
* |viewTransition|'s [=ViewTransition/active types=][=list/contains=] at least one of the <<custom-ident>> values of the <<vt-type-selector>>.
225
+
226
+
<div class=example>
227
+
For example, the developer might start a transition in the following manner:
The [=method steps=] for <dfn method for=Document>startViewTransition(|callbackOptionsOrNull|)</dfn> are as follows:
335
+
336
+
1. If |callbackOptionsOrNull| is an {{UpdateCallback}} or null, then run the [=method steps=] for {{Document/startViewTransition(updateCallback)}} given |callbackOptionsOrNull| and return the result.
337
+
338
+
1. Let |viewTransition| be the result of running [=method steps=] for {{Document/startViewTransition(updateCallback)}} given |callbackOptionsOrNull|'s {{StartViewTransitionOptions/update}}.
339
+
340
+
1. Set |transition|'s [=ViewTransition/active types=] to |callbackOptionsOrNull|'s {{StartViewTransitionOptions/types}}.
341
+
342
+
1. Return |viewTransition|.
343
+
</div>
344
+
267
345
268
346
269
347
# Algorithms # {#algorithms}
@@ -283,6 +361,9 @@ The <dfn attribute for=PageRevealEvent>viewTransition</dfn> [=getter steps=] are
283
361
<dl dfn-for=ViewTransition>
284
362
: <dfn>is inbound cross-document transition</dfn>
285
363
:: a boolean, initially false.
364
+
365
+
: <dfn>active types</dfn>
366
+
:: Null or a [=list=] of strings, initially null.
286
367
</dl>
287
368
288
369
## Monkey patches to HTML ## {#monkey-patch-to-html}
0 commit comments