Re: [csswg-drafts] [css-view-transitions-2] [scoped] Can a self-participating scope be an outer-transition participant? (#12322)

A practical demo here is https://codepen.io/bramus/pen/bNeydYM/a7c9dcc116a44b55226da74618a9e8f9

In this demo you can have:

- Inner Element-Scoped View Transitions when shuffling the items in each list
- An Outer Element-Scoped View Transition that swaps the lists themselves _(while those lists can each have an ongoing inner transition)_

The demo uses an ancestor of the inner scope as the outer participant, as the workaround.

https://github.com/user-attachments/assets/0ab3a15c-caca-40e3-a739-f3de45bdae67

I would love if we could get this to work without the workaround, eventually.

One thing I initially tried to do, is to:

- Make the `ul`s **not** self-participating when shuffling the items _(by setting `view-transition-name: none` on them)_
- Give the `ul`s a `view-transition-name` (through script) when starting the outer view transition.

This did not work, yet from an author POV I would have expected that a non-self-participating scope was allowed to participate in an outer view transition.

(As for the `outer-view-transition-name: bar`: I think we can scrap that idea. Seems very weird.)

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


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

Received on Thursday, 19 February 2026 23:12:29 UTC