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

Instead of adding a new property, suggesting to allow multiple idents in `view-transition-name` (space or comma separated), with the following semantics:
- For the purposes of matching the old and new element, the combination of idents need to be unique and an exact match
- For the purposes of selecting pseudo-elements, any of the idents has to match

So for example, a song in a playlist can have the following rule:
`view-transition-name: song1 song-item`

It would only match an element in the new state if it's also `song1 song-item` (or `song-item song1`),
but it would match either `::view-transition-group(song-item)` or ::view-transition-group(song1) (or `::view-transition-old` for that matter).

Together with a solution for #8320, this can solve the use-case without having to invent new syntax for the pseudo-element selector.






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


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

Received on Tuesday, 10 October 2023 18:51:55 UTC