Skip to content

Commit 85533a8

Browse files
authored
Ensure vt scope qualifies for layout containment (#14327)
1 parent f857f23 commit 85533a8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

css-view-transitions-2/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,13 @@ Note: An <code>element.startViewTransition()</code> call does not update
632632
to |callbackOptions|'s {{StartViewTransitionOptions/update}}.
633633

634634
1. If [=this=]'s [=principal box=] is [=element-not-rendered|not rendered=],
635+
or is an <a spec="css-display-3">internal table box</a> other than ''display/table-cell'',
635636
or is an <a spec="css-display-3">internal ruby box</a>
636637
or a <a spec="css-display-3" lt="atomic inline">non-atomic</a> <a spec="css-display-3">inline-level</a> box,
637-
[=Skip the view transition|skip=] |viewTransition| with an "{{InvalidStateError}}" {{DOMException}}.
638+
then [=skip the view transition|skip=] |viewTransition| with an "{{InvalidStateError}}" {{DOMException}},
639+
and return |viewTransition|.
640+
641+
Note: This ensures that [=this=] has a [=principal box=] and qualifies for [=layout containment=].
638642

639643
1. If [=this=] is not the [=/root element|document root element=],
640644
force [=this=] to have both [=layout containment=] and [=view transition scoping=] for the duration of the transition.
@@ -1152,7 +1156,8 @@ and by applying ''view-transition-group'' to the internal element referencing th
11521156
than the rest of the document.)
11531157

11541158
In order to host a [=scoped view transition=],
1155-
an element must have [=layout containment=],
1159+
an element must qualify for [=layout containment=],
1160+
which will be applied automatically,
11561161
so its painted output can be captured as an atomic unit.
11571162

11581163
[=View transitions=] whose [=ViewTransition/root element=] is the [=document element=]

0 commit comments

Comments
 (0)