[csswg-drafts] [css-view-transitions-2] Allow passing arbitrary context between Documents for a transition. (#8303)

khushalsagar has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-2] Allow passing arbitrary context between Documents for a transition. ==
The cross-document VT API has a hook for passing opaque contextual data between pages [here](https://github.com/WICG/view-transitions/blob/main/explainer.md#cross-document-same-origin-transitions:~:text=Add%20opaque%20contextual%20information%20to%20share%20with%20the%20new%20Document.). The idea being that pages can use this to send information from old to new Document for any customization which is not covered by existing APIs. For example, the location where the user clicked, the current scroll offset on the page etc. It's mean to enable flexibility for use-cases we (API designer) might not be thinking of.

The hook is only relevant for MPA since same-document transitions can already do this trivially with context set up outside of the transition API.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8303 using your GitHub account


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

Received on Wednesday, 11 January 2023 21:27:21 UTC