Re: [csswg-drafts] [css-view-transitions-2] Revisit the behavior of skipping the view transition when there are duplicate names (#13438)

> > What if there is a duplicate name on one side of the transition, but none of that name on the other side?
> 
> In other specs it’s typically the last element (in DOM order) that wins, so only one element would be captured here.
> 
> The behavior of having only a captured element with that name at one end of a VT is already specced: you’d get only a `::view-transition-old` or `::view-transition-new` in that case.

I know. What I'm saying is that I think that from a developer perspective, it could be unintuitive if I set up a view transition with multiple identically configured elements that \*could* theoretically all animate in or out unambiguously, but just one of them actually animates. Depending on the exact setup, I'd be inclined to try and see what I am doing right for that one element but not the others. Only for the answer to be "Nothing. They're all wrong, but one decides to work anyways."

Though I'm also not super sure if this would be that big of an issue in practice.

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


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

Received on Monday, 16 March 2026 15:16:05 UTC