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

> I do see the advantage of `@media (navigation-type: foo)` as compared to `@navigation foo` since you can compose the former with other media queries

One reason to prefer `@navigation` over `@media` could be to limit what is allowed inside of the block. When using `@media`, an author can put just about anything in there, and thus conditionally style the page based on the navigation.

If this is not feasible because of whatever reason, then using `@navigation` could be a better way, as that could be designed to only accept certain types of nested rules.

A third option is to add these navigation conditions onto a dedicated `@view-transition` rule, narrowing the reach of it even more.

-- 
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8048#issuecomment-1673767416 using your GitHub account


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

Received on Thursday, 10 August 2023 19:11:42 UTC