Re: [csswg-drafts] [view-transitions] Expose `activeViewTransition` (#12407)

I'd want to limit this issue to just `activeViewTransition` on the element/document on which `startViewTransition` was called. I agree with @nt1m that it seems very straightforward to do.

If there's a need for `activeViewTransitions` array on the document that captures all transitions within this document, we can discuss separately (FWIW I think that would also be straightforward, but I want to make sure we see demand for that)

Proposal: add `document.activeViewTransition` that is the current ViewTransition and null otherwise. Add similar property for scoped view transitions, where each element also has an `activeViewTransition` field

-- 
GitHub Notification of comment by vmpstr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12407#issuecomment-3073735790 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 July 2025 14:02:12 UTC