Re: [csswg-drafts] [css-view-transitions-2] `view-transition-group` and the root element (#10632)

> The behaviour of picking root if the author says `nearest` seems fine to me. Because the initial value would be `normal` so that's what you should be using if you want `::view-transition`. Am I missing a case?

I'm thinking that in most cases nesting to `root` would be somewhat unexpected and redundant, because the root element clips the `::view-transition` element anyway, so it's a bit of a double-clip.

So if someone has CSS like `* { view-transition-group: nearest }` to make everything nested, the behavior wrt `root` would be a bit strange. But I guess they could have something like `:not(:host) { view-transition-group: contain }` as an alternative.

It's not a big deal, but I think it's worth mentioning that nesting to the root element's group is a bit of a strange result and we should mind it and at least add a note.


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


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

Received on Monday, 29 July 2024 19:29:33 UTC