Re: [csswg-drafts] [css-view-transitions-2] Creating 'classes' of transition groups (#8319)

> ```css
> .box::view-transition-group(*) {
>   /* … */
> }
> ```

This doesn't really work, as `view-transition-group(*)` has the root as the parent element. `view-transition-group(*)` rooted to other elements is something we should reserve for [scoped transitions](https://github.com/WICG/view-transitions/blob/main/scoped-transitions.md).
 
> ```css
> ::view-transition-group(*):where(.box) {
>   /* … */
> }
> ```

What's the benefit of this vs `::view-transition-group(*).box`?

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


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

Received on Tuesday, 5 December 2023 11:00:33 UTC