Re: [csswg-drafts] [css-view-transitions] Automatically start view transitions for `<dialog>`, Popover, etc. (#8083)

The attribute solution looks good. I think this will depend on [scoped view transitions](https://github.com/WICG/view-transitions/blob/main/scoped-transitions.md).

I don't think regular divs should have such a simple solution. It's easy for dialogs and popovers because they're positioned outside of regular content flow. With a regular div, animating the div out is easy, what's hard is deciding what should happen with everything else that moves as a result.

Eg, [in this example](https://simple-set-demos.glitch.me/video/) (Canary with view-transition flag required), I deliberately make the content beneath the video transition position. However, this is hard to generalise. A rule like "everything transitions from its before to after position" would be an explosion of layers, and look really ugly in non-trivial cases.

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


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

Received on Thursday, 17 November 2022 18:29:21 UTC