Re: [csswg-drafts] [css-view-transition-2] Should non-default `view-transition-group` act like `contain`? (#10780)

This was the proposal we resolved on: https://github.com/w3c/csswg-drafts/issues/10334#issuecomment-2165649094

<hr>
Just read though the thread (quickly, so might have missed something). I think what you want (?) is something like

`view-transition-group: normal | <ident> | auto | contain` where

- normal - defaults to placing directly under transition root (current behavior).
- `<ident>` - groups the under the element with the specified `view-transition-name` _and_ automatically changes `normal` descendants to default to this item.
- `auto` or `nearest` - same as `<ident>` but chooses the closest ancestor with `view-transition-name`.
- `contain` - captures descendants to this element, but doesn't affect this element's position in the tree.

The property name hooks into the `::view-transition-group` pseudo-element name, and it is not inherited. It applies to elements with `view-transition-name` only.

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


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

Received on Thursday, 26 September 2024 21:04:17 UTC