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
The initial phase is the first item in the sequence.
784
787
785
-
## The snapshot root ## {#snapshot-root-concept}
788
+
## The snapshot containing block ## {#snapshot-root-concept}
786
789
787
-
The <dfn>snapshot root</dfn> is a rectangle that covers all areas of the window that could potentially display web content.
790
+
The <dfn>snapshot containing block</dfn> is a rectangle that covers all areas of the window that could potentially display web content.
788
791
This area is consistent regardless of root scrollbars or interactive widgets.
789
792
790
793
Issue: "Interactive widgets" refers to UI described within a property definition in [[css-viewport#interactive-widget-section]].
791
794
This should be extracted into an exported definition that can be used independently of the property.
792
795
793
796
<figure>
794
797
<img src="diagrams/phone-browser.svg" width="200" height="335" alt="A diagram of a phone screen, including a top status bar, a browser URL bar, web-content area with a floating scrollbar, a virtual keyboard, and a bottom bar with an OS back button">
795
-
<img src="diagrams/phone-browser-snapshot-root.svg" width="200" height="335" alt="The previous diagram, but highlights the area that's the 'snapshot root', which includes everything except the top status bar and the bottom bar with the OS back button">
798
+
<img src="diagrams/phone-browser-snapshot-root.svg" width="200" height="335" alt="The previous diagram, but highlights the area that's the 'snapshot containing block', which includes everything except the top status bar and the bottom bar with the OS back button">
796
799
<figcaption>
797
-
An example of the [=snapshot root=] on a mobile OS.
800
+
An example of the [=snapshot containing block=] on a mobile OS.
798
801
The snapshot includes the URL bar, as this can be scrolled away.
799
802
The keyboard is included as this appears and disappears.
800
-
The top and bottom bars are part of the OS rather than the browser, so they're not included in the snapshot root.
803
+
The top and bottom bars are part of the OS rather than the browser, so they're not included in the snapshot containing block.
801
804
</figcaption>
802
805
</figure>
803
806
804
807
<figure>
805
808
<img src="diagrams/desktop-browser.svg" width="132" height="79" alt="A diagram of a desktop browser window, including a tab bar, a URL bar, and a web-content area featuring both horizontal and vertical scrollbars" style="height:auto; width: 600px">
806
-
<img src="diagrams/desktop-browser-snapshot-root.svg" width="132" height="79" alt="The previous diagram, but highlights the area that's the 'snapshot root', which includes the web content area and the scrollbars" style="height:auto; width: 600px">
809
+
<img src="diagrams/desktop-browser-snapshot-root.svg" width="132" height="79" alt="The previous diagram, but highlights the area that's the 'snapshot containing block', which includes the web content area and the scrollbars" style="height:auto; width: 600px">
807
810
<figcaption>
808
-
An example of the [=snapshot root=] on a desktop OS.
811
+
An example of the [=snapshot containing block=] on a desktop OS.
809
812
This includes the scrollbars, but does not include the URL bar, as web content never appears in that area.
810
813
</figcaption>
811
814
</figure>
812
815
813
816
This means the snapshot canvas size is likely to be consistent for the [=document element=]'s [=captured element/old image=] and [=captured element/new element=].
814
817
815
-
The <dfn>snapshot root origin</dfn> refers to the top-left corner of the [=snapshot root=].
818
+
The <dfn>snapshot containing block origin</dfn> refers to the top-left corner of the [=snapshot containing block=].
816
819
817
-
The <dfn>snapshot root size</dfn> refers to the width and height of the [=snapshot root=] as a [=/tuple=] of two numbers.
820
+
The <dfn>snapshot containing block size</dfn> refers to the width and height of the [=snapshot containing block=] as a [=/tuple=] of two numbers.
818
821
819
822
## The [=view-transition layer=] stacking layer ## {#view-transition-stacking-layer}
When this is true, [=this=]'s [=active view transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
909
912
and [=this=]'s [=document element=] is its [=originating element=].
910
913
911
-
Note: The position of the [=ViewTransition/transition root pseudo-element=] within the [=document element=] does not matter, as the [=ViewTransition/transition root pseudo-element=]'s [=containing block=] is the [=snapshot root=].
914
+
Note: The position of the [=ViewTransition/transition root pseudo-element=] within the [=document element=] does not matter, as the [=ViewTransition/transition root pseudo-element=]'s [=containing block=] is the [=snapshot containing block=].
1. Set |height| to the current height of |capturedElement|'s [=new element=]'s [=border box=].
1704
1707
1705
-
1. Set |transform| to a transform that would map |capturedElement|'s [=new element=]'s [=border box=] from the [=snapshot root origin=] to its current visual position.
1708
+
1. Set |transform| to a transform that would map |capturedElement|'s [=new element=]'s [=border box=] from the [=snapshot containing block origin=] to its current visual position.
1706
1709
1707
1710
1. Set |writingMode| to the [=computed value=] of 'writing-mode' on |capturedElement|'s [=new element=].
1708
1711
@@ -1804,7 +1807,7 @@ Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221
1804
1807
* Add rendering constraints to elements participating in a transition. See <a href="https://github.com/w3c/csswg-drafts/issues/8139">issue 8139</a> and <a href="https://github.com/w3c/csswg-drafts/issues/7882">issue 7882</a>.
1805
1808
* Remove html specifics from UA stylesheet to support ViewTransitions on SVG Documents.
1806
1809
* Rename updateDOMCallback to {{UpdateCallback}}. See <a href="https://github.com/w3c/csswg-drafts/issues/8144">issue 8144</a>.
1807
-
* Rename snapshot viewport to [=snapshot root=].
1810
+
* Rename snapshot viewport to [=snapshot containing block=].
1808
1811
* Skip the transition if viewport size changes. See <a href="https://github.com/w3c/csswg-drafts/issues/8045">issue 8045</a>.
1809
1812
* Add support for :only-child. See <a href="https://github.com/w3c/csswg-drafts/issues/8057">issue 8057</a>.
1810
1813
* Add concept of a tree of pseudo-elements under [=pseudo-element root=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8113">issue 8113</a>.
0 commit comments