Skip to content

Commit cb27607

Browse files
committed
[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.
1 parent 88d526f commit cb27607

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

css-view-transitions-2/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,7 @@ It has the following [=struct/items=]:
25362536
has ''contain: view-transition'',
25372537
[=continue=].
25382538

2539-
1. If |element| has more than one [=box fragment=], then [=continue=].
2539+
1. If |element|'s [=principal box=] has more than one [=box fragment=], then [=continue=].
25402540

25412541
Note: We might want to enable transitions for fragmented elements in future versions.
25422542
See [#8900](https://github.com/w3c/csswg-drafts/issues/8900).
@@ -2626,7 +2626,7 @@ It has the following [=struct/items=]:
26262626
or |element| is [=element-not-rendered|not rendered=],
26272627
then [=continue=].
26282628

2629-
1. If |element| has more than one [=box fragment=], then [=continue=].
2629+
1. If |element|'s [=principal box=] has more than one [=box fragment=], then [=continue=].
26302630

26312631
1. If |usedTransitionNames| [=list/contains=] |transitionName|,
26322632
then return failure.
@@ -3398,7 +3398,7 @@ To <dfn>adjust nested view transition group transform</dfn> given a |transform|
33983398

33993399
- |capturedElement|'s [=new element=] is [=element-not-rendered|not rendered=].
34003400

3401-
- |capturedElement| has more than one [=box fragment=].
3401+
- |capturedElement|'s [=new element=]'s [=principal box=] has more than one [=box fragment=].
34023402

34033403
Note: Other rendering constraints are enforced via |capturedElement|'s [=new element=] being [=captured in a view transition=].
34043404

0 commit comments

Comments
 (0)