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

> `@allow-view-transitions: same-document` would be the default, and `@allow-view-transitions: none` would be equivalent to `::view-transitions { display: none }`.

Bearing in mind that `::view-transitions { display: none }` only hides transitions, it doesn't prevent them, do you really mean that?

> ```css
> @auto-view-transitions {
>   same-origin: allow;
>   same-site: allow;
>   same-document: allow;
> }
> ```
> 
> or something like:
>
> ```css
> @auto-view-transitions: same-origin same-document same-site;
> ```

This feels generally in the right direction. CSSWG folks who are across multiple specs will be able to help with the naming & syntax.

It might be worth thinking about what a 'manual' cross-document view transition would look like. As in, some kind of just-in-time opt-in. And, whether this syntax makes sense in that case, particularly in the new page that drives the animation.

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


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

Received on Monday, 12 June 2023 08:32:55 UTC