Re: [csswg-drafts] [css-view-transitions-2]: Nested ::view-transition-group should have a container pseudo. (#11926)

> Having the `::view-transition-nested-groups` be sized to the content box does seem painful for devs, where they'd have to recreate a bunch of sizing stuff.

I believe you mean sized to the _border box_ here ;)

This is effectively the tree from example 4 from [the playground](https://codepen.io/bramus/full/EaxvMXG/11b9fcbe8ebf42034110d3b486db037f) but with the CSS fixups from example 3 applied.

> The idea [@bramus](https://github.com/bramus) attributed to [@flackr](https://github.com/flackr) seemed great to me, where the `::view-transition-nested-groups` where the border size of the parent is captured, and assigned as a transparent border to the `::view-transition-nested-groups`. I know there were complexities around the layered capture, but do we hit them in this simple case?

For reference, this is example 5 from [the playground](https://codepen.io/bramus/full/EaxvMXG/11b9fcbe8ebf42034110d3b486db037f). For demonstration purposes I am using a `dashed lime` border – instead of a `transparent` one – on the `::view-transition-nested-groups` so that you can see what is going on.



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


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

Received on Tuesday, 13 May 2025 09:04:07 UTC