Re: [csswg-drafts] [css-view-transitions-2] Element-scoped view transitions (#9890)

We are now ready to discuss this a bit more in detail, and add the initial proposal to he spec draft.
The basics:
- Add `Element.prototype.startViewTransition`, equivalent to `Document.prototype.startViewTransition`
- The view-transition pseudo-elements can be attached to any element, not only to the pseudo element.
- Rendering and hit-testing suppression only applies to the scope

Known open issues to be resolved separately, after the base is in the draft:
- Handling participant collisions.  Initial approach: skip the old transition.
- Do we need a `view-transition-scope` attribute or some such to encapsulate the inner names from the outer transition.
- Does the scope element itself (the "root" of the scoped transition) participate in the inner transition, similar to the document element in a document-scoped-transition?
- Scope resized during transition?  Current approach: skip. Maybe doable somehow?
- Reimplement nesting on top of scoped? See #11927 

The ask from the WG is to resolve on the basics, and open separate Github issues for the known issues.


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


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

Received on Thursday, 8 May 2025 08:49:50 UTC