Re: [csswg-drafts] [css-view-transitions-2] Declarative opt-in for cross-document navigations (#8048)

@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.

-- 
GitHub Notification of comment by khushalsagar
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8048#issuecomment-1671857024 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:31:12 UTC