You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is only ever a [=tree/child=] of a ''::view-transition-image-pair()'',
681
-
never has any [=tree/children=],
682
-
and is omitted if there's no "old" state to represent.
676
+
<div class=note>
683
677
684
-
'':only-child'' can be used to match cases where this element is the only element in the ''::view-transition-image-pair()''.
678
+
This element is a replaced element that produced the visual representation of the "old" state taken from user-agent provided snapshots.
685
679
686
-
The appearance of this element can be manipulated with `object-*` properties in the same way that other replaced elements can be.
680
+
This is only ever a [=tree/child=] of a ''::view-transition-image-pair()'',
681
+
never has any [=tree/children=],
682
+
and is omitted if there's no "old" state to represent.
687
683
688
-
</div>
684
+
'':only-child'' can be used to match cases where this element is the only element in the ''::view-transition-image-pair()''.
689
685
690
-
A [=tree-abiding pseudo-element=]
691
-
that is also a [=named view-transition pseudo-element=],
692
-
and [=tree/participates=] in a [=pseudo-element tree=].
686
+
The appearance of this element can be manipulated with `object-*` properties in the same way that other replaced elements can be.
693
687
694
-
It is selected from its [=ultimate originating element=], the [=document element=].
688
+
</div>
695
689
696
-
It is a [=replaced element=], with [=natural dimensions=] equal to the content's size.
690
+
A [=tree-abiding pseudo-element=]
691
+
that is also a [=named view-transition pseudo-element=],
692
+
and [=tree/participates=] in a [=pseudo-element tree=].
697
693
698
-
Note: The image content is captured in [=capture the image=],
699
-
then set and updated in [=setup transition pseudo-elements=] and [=update pseudo-element styles=].
694
+
It is selected from its [=ultimate originating element=], the [=document element=].
700
695
701
-
The following is added to the [=HTML user agent style sheet=]:
696
+
It is a [=replaced element=], with [=natural dimensions=] equal to the content's size.
702
697
703
-
```css
704
-
html::view-transition-old(*) {
705
-
position: absolute;
706
-
inset-block-start: 0;
707
-
inline-size: 100%;
708
-
block-size: auto;
709
-
710
-
animation-name: -ua-view-transition-fade-out;
711
-
animation-duration: inherit;
712
-
animation-fill-mode: inherit;
713
-
}
714
-
```
698
+
Note: The image content is captured in [=capture the image=],
699
+
then set and updated in [=setup transition pseudo-elements=] and [=update pseudo-element styles=].
700
+
701
+
The following is added to the [=HTML user agent style sheet=]:
702
+
703
+
```css
704
+
html::view-transition-old(*) {
705
+
position: absolute;
706
+
inset-block-start: 0;
707
+
inline-size: 100%;
708
+
block-size: auto;
715
709
716
-
Note: The aim of the style is to match the element's inline size while retaining the aspect ratio.
717
-
It is also placed at the block start.
710
+
animation-name: -ua-view-transition-fade-out;
711
+
animation-duration: inherit;
712
+
animation-fill-mode: inherit;
713
+
}
714
+
```
718
715
719
-
Note: Additional styles in the [=document/view transition style sheet=] added to animate these pseudo-elements are detailed in [=setup transition pseudo-elements=] and [=update pseudo-element styles=].
716
+
Note: The aim of the style is to match the element's inline size while retaining the aspect ratio.
except the following styles added to the [=HTML user agent style sheet=]:
719
+
Note: Additional styles in the [=document/view transition style sheet=] added to animate these pseudo-elements are detailed in [=setup transition pseudo-elements=] and [=update pseudo-element styles=].
0 commit comments