[css-view-transitions-2] Nested transitions: what happens if there is a mismatch? · Issue #10631 · w3c/csswg-drafts (original) (raw)

Follow up on #10334 (nested transitions)

It's clear what happens when both the old and new state have the same view-transition-group.
We need to specify, however what happens when there is a mismatch.
Note that this mismatch can happen by use of keywords like nearest.

Example:

A box sliding between two clipping containers
BoxToBox

Several solutions to a mismatch:

  1. new capture wins (like view-transition-class)
  2. Old capture wins
  3. Fallback to nearest common ancestor
  4. Split to two groups, one with the old pseudo and one with the new pseudo. The two groups have a default transform animation that represents moving the element from the old position to the new.

Trade-offs:

I tend to support option (4) because of the following: