Skip to content

Commit faaa5d8

Browse files
Specify element.activeViewTransition. (#13130)
1 parent 0b27f7c commit faaa5d8

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

css-view-transitions-2/Overview.bs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,9 @@ the [=active view transition=] is exposed to script via a document property.
16281628
or null if there is no active view transition.
16291629
</dl>
16301630

1631-
Issue: Is this updated by a <code>rootEl.startViewTransition()</code> call, too?
1631+
Note: An <code>element.startViewTransition()</code> call does not update
1632+
<code>document.activeViewTransition</code>, but will update
1633+
{{Element/activeViewTransition}} on the <code>element</code>.
16321634

16331635
## Additions to {{Element}} ## {#additions-to-element-api}
16341636

@@ -1710,6 +1712,17 @@ Issue: Is this updated by a <code>rootEl.startViewTransition()</code> call, too?
17101712
1. Return |viewTransition|.
17111713
</div>
17121714

1715+
### {{Element/activeViewTransition}} Property ### {#element-activeviewtransition}
1716+
1717+
Similar to [Document.activeViewTransition](#doc-activeviewtransition),
1718+
the active view transition of an element is exposed to script via a property on the element.
1719+
1720+
<dl dfn-type=attribute dfn-for=Element>
1721+
: <dfn>activeViewTransition</dfn>
1722+
:: Returns the [=active view transition=] for the [=element=],
1723+
or null if there is no active view transition.
1724+
</dl>
1725+
17131726
## The {{ViewTransition}} interface ## {#the-domtransition-interface}
17141727

17151728
<xmp class=idl>

0 commit comments

Comments
 (0)