Re: [csswg-drafts] [css-view-transitions-2] Dealing with promises on old VT object (#9888)

> I think that is what is meant with option 2?

Yup. Regarding naming, I went with `SnapshotViewTransition` because this Document only provides the snapshot but no animations. `PendingViewTransition` is also fine.

>  How would authors then easily get to know what the target URL is in order to determine the transition type?

The `pageconceal` event has a [NavigationActivation](https://html.spec.whatwg.org/#navigation-activation-interface) to provide the final URL, nav type and a reference to the destination entry. We can't commit the navigation, i.e. change the current entry, because the old Document has to remain active so it can produce one last frame which the browser will cache.

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


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

Received on Wednesday, 7 February 2024 01:02:59 UTC