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

Re: media query and importantly having the ability to add general css in those blocks (to add/remove `view-transition-name` on elements), does it make sense to have a `@navigation` (instead of `@media`) for this to gate based on navigation type

Eg,
```css
.foo {
 view-transition-name: foo
}
@navigation reload {
.foo {
  view-transition-name: none
}
}
```

Or something along those lines? Or is the objection to the media-query style proposal extend to any at-rule style syntax?

Also, presumably `@view-transition` opt-in block can also be wrapped in the `@navigation` block

-- 
GitHub Notification of comment by vmpstr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8048#issuecomment-1671763585 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 16:33:24 UTC