Nested view transitions: support cross-document exit animations
Since the new state doesn't have the nested element, we have to
rely on the previous capture. In the cross-document scenario,
this comes from the old document and has to be serialized together
with the ViewTransitionElement.
Added a test that works with both cross-doc and same-doc as
test variants.
Bug: 347947051
Change-Id: Ie8bb06136d9183a9251a6f5b604d925a9a227c6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5766878
Commit-Queue: Noam Rosenthal nrosenthal@chromium.org
Reviewed-by: Khushal Sagar khushalsagar@chromium.org
Reviewed-by: Mike West mkwst@chromium.org
Cr-Commit-Position: refs/heads/main@{#1339580}