- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Wed, 09 Aug 2023 17:44:02 +0000
- To: public-css-archive@w3.org
> @noamr, regarding the syntax below: > > > > ``` > > @view-transition :reload { > > navigation-trigger: cross-document; > > view-transition-group: refreshing; > > } > > > > @media (view-transition-group: refreshing) and (prefers-reduce-motion: no-preference) { > > } > > ``` > > > > I'm not seeing the advantage of having an indirection, where `:reload` is available on `@view-transition` to set a `view-transition-group` and then the group is available as a media-query. Why not use `reload` directly in the media-query like in @SebastianZ's example. I tend to agree that if we're introducing a CSS syntax for navigation state, there is no reason to tie it to View Transitions. The indirection is there to support non-navigation SPA (startViewTransition({groupName: "refreshing"}). Otherwise you'd have to bring all this jazz into startViewTransition or make it very coupled with the navigation API -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8048#issuecomment-1671874128 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 9 August 2023 17:44:04 UTC