Re: [csswg-drafts] [css-view-transitions-2] CSS only way to transition between list <-> detail views (#8209)

Just to clarify, the CSS property `view-transition-name` is actually more like `view-transition-id` that you describe above since it must be unique for each element participating in the transition. It also can be used to target a unique generated pseudo-element.

I'm supportive of having a class name like identifier which can be common to set of elements for the purpose of specifying styles which apply to a subset of pseudo-elements of a type but not all of them. So you'd have:

- view-transition-old(*): all pseudo-elements of this type.
- view-transition-old(foo): pseudo-element generated for the DOM element with `view-transition-name: foo`.
- view-transition-old(.foo): pseudo-elements generated for DOM elements with `view-transition-class: foo`.

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


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

Received on Thursday, 5 January 2023 20:05:05 UTC