From cb276073dbfc208e8cd72cb115ffb78e82be0546 Mon Sep 17 00:00:00 2001 From: "Psychpsyo (Cameron)" <60073468+Psychpsyo@users.noreply.github.com> Date: Wed, 27 May 2026 15:13:24 +0200 Subject: [PATCH] [view-transitions-2] Do not access box fragments on things that don't fragment Neither elements nor captured elements can fragment. Only boxes do that. I'm making this care about the principal box here, since fragmenting any other boxes that might be created for an element inside of its principal box will also fragment the principal box. --- css-view-transitions-2/Overview.bs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css-view-transitions-2/Overview.bs b/css-view-transitions-2/Overview.bs index 537746c61038..2a019fa260bf 100644 --- a/css-view-transitions-2/Overview.bs +++ b/css-view-transitions-2/Overview.bs @@ -2536,7 +2536,7 @@ It has the following [=struct/items=]: has ''contain: view-transition'', [=continue=]. - 1. If |element| has more than one [=box fragment=], then [=continue=]. + 1. If |element|'s [=principal box=] has more than one [=box fragment=], then [=continue=]. Note: We might want to enable transitions for fragmented elements in future versions. See [#8900](https://github.com/w3c/csswg-drafts/issues/8900). @@ -2626,7 +2626,7 @@ It has the following [=struct/items=]: or |element| is [=element-not-rendered|not rendered=], then [=continue=]. - 1. If |element| has more than one [=box fragment=], then [=continue=]. + 1. If |element|'s [=principal box=] has more than one [=box fragment=], then [=continue=]. 1. If |usedTransitionNames| [=list/contains=] |transitionName|, then return failure. @@ -3398,7 +3398,7 @@ To adjust nested view transition group transform given a |transform| - |capturedElement|'s [=new element=] is [=element-not-rendered|not rendered=]. - - |capturedElement| has more than one [=box fragment=]. + - |capturedElement|'s [=new element=]'s [=principal box=] has more than one [=box fragment=]. Note: Other rendering constraints are enforced via |capturedElement|'s [=new element=] being [=captured in a view transition=].