[csswg-drafts] [css-view-transitions-1] [cross-document] Declarative opt-in (#8048)

jakearchibald has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-view-transitions-1] [cross-document] Declarative opt-in ==
Cross-document transitions need some way for both the old & new page to opt-in to a transition.

The SPA API uses JS for this, but it would be nice if cross-document transitions didn't depend on JS.

It feels like this should be in CSS, so it can be influenced by media queries, particularly `prefers-reduced-motion`.

The tricky part here is it's a "global" setting, so it can't be a CSS property.

Proposal:

```css
@cross-document-transition allow;

@media (prefers-reduced-motion) {
  @cross-document-transition deny;
}
```

However, I'm just making stuff up here. Is there any prior art here for setting 'global' things?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8048 using your GitHub account


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

Received on Wednesday, 9 November 2022 11:13:00 UTC