Re: [csswg-drafts] [css-view-transitions-2] view-transition-name determined by element (#8320)

A few clarifications/comments from the call:
- Regarding the idea of using IDs by default and fallback to some internal element identity, it's a nice idea but it doesn't solve the SPA/MPA compatibility problem. You might have `auto` without ID on multiple elements, and now instead of having to give all of them explicit `view-transition-name` the author would need to set explicit IDs. It's not a great win, especially if we end up also having an alternative `ident(attr(...))` solution. I think it would add more complexity than benefit. It might be best to say that `auto` is for same-document only - anyway grid-sorting transitions with lots of elements tend to be more in the context of the same page so perhaps it's ok.
- The matching should also match pseudo-element, not just `::part`. e.g. you should be able to match `::before` for the old/new state with this.
- Suggesting that for a start, the generated pseudo-element name as it appears in introspection and the animation API would be `*` with the classes applied to the element, e.g. `::view-transition-group(*.class1.class2)`, and `::view-transition-group(*)` if there are no applied `view-transition-class`.

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


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

Received on Wednesday, 24 July 2024 19:49:30 UTC