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

The view transition pseudos are pseudos on the transition root. A selector like `.box::view-transition-group(*)` would mean that the transition root has that class, not the pseudo. So that makes this selector no option.

I agree with @vmpstr that having the class name in the brackets is better.

Some options I am thinking of:

- `::view-transition-group(.box)` (but this could be confused with regular `.box` classes applied to elements in the DOM)
- `::view-transition-group(* of box)` which borrows syntax from nth. Multiple values can be used `… of box, fruit` or something like that.
- `::view-transition-group(box|mybox)` which borrows syntax from namespacing. Not sure how multiple classes would fit in this syntax.



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


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

Received on Saturday, 9 December 2023 22:24:55 UTC