- From: Khushal Sagar via GitHub <sysbot+gh@w3.org>
- Date: Fri, 09 Jun 2023 18:53:43 +0000
- To: public-css-archive@w3.org
@jakearchibald before going into the exact syntax, I want to make sure we're all on the same page about the following: - Not allowing media queries on the old Document to depend on any state parsed from the new Document. So something like this on the old Document: ```css @media (vt-next-page: article) { /* … */ } ``` where `article` comes from the new Document makes the implementation quite complicated. It's more preferable to have a syntax where the old Document uses the target URL of the navigation to avoid this dependency. - Extending this approach to SPA transitions: - It's better if we can enable these queries for same-document navigations, irrespective of whether there is a transition. We'll need to think through the lifetime of the queries with respect to the navigation lifecycle but I don't see the advantage of limiting it to navigations which have a ViewTransition (unless constrained by implementation). - On the flip side, if the transition is not associated with a navigation, then does it make sense to enable these queries? They would be tightly coupled with navigation concepts. We could have the author specify parameters that identify a navigation (url, type) in the call to startViewTransition but then it becomes ambiguous which state should we be using for these queries. For example, does the vt-old-page value come from the previous navigation entry's url or what the author passed in the startViewTransition call? We can have a think about this more but are there use-cases where an author would want this functionality but doesn't want to trigger a same-document navigation? -- GitHub Notification of comment by khushalsagar Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8925#issuecomment-1585006392 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 9 June 2023 18:53:45 UTC