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

> Regarding complex selectors. I think it's OK to add a limitation to only allow class (and ID) selector for View transitions as @bramus suggested.
> 
> > e.g. `::v-t-x(* of #id)` and `::v-t-x(* of .cls)`.
> 
> I'm completely in agreement with @bramus on his last comment, including this:
> 
> > The use-case for an explicit view-transition-name: ident would then be limited to situations where the transition happens between two states that don’t share an id or classes
> 
> I didn't consider this use-case, but this might be useful when the author of the CSS has no control over the HTML markup.
> 
> > So to make this work we'd have to do one of the following:
> 
> What about snapshotting only the elements that have a `view-transition-name` set?

Of course, but what would you snapshot about them? Only classes and IDs? all possible selectors?

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


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

Received on Sunday, 10 December 2023 21:51:32 UTC