Re: [csswg-drafts] [css-view-transitions-2] Allow targeting of the root having an active view-transition of any type (#11152)

The alternative is that authors always set a default type using CSS (cross-document) / JS (same-document) when none is to be used, but that seems a bit counterintuitive:

```css
@view-transition {
  navigation: auto;
  types: default;
}
```

```js
const t = document.startViewTransition({
  update: () => {
    document.documentElement.classList.toggle('vt');
  },
  types: ['default'],
});
```

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


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

Received on Tuesday, 5 November 2024 10:44:09 UTC