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.
365
365
366
-
## The snapshot viewport ## {#snapshot-viewport-concept}
366
+
## The snapshot root ## {#snapshot-root-concept}
367
367
368
-
The <dfn>snapshot viewport</dfn> covers all areas of the window that could potentially display web content.
368
+
The <dfn>snapshot root</dfn> is a rectangle that covers all areas of the window that could potentially display web content.
369
369
This area is consistent regardless of root scrollbars or interactive widgets.
370
370
371
371
Issue: "Interactive widgets" refers to UI described within a property definition in [[css-viewport#interactive-widget-section]].
372
372
This should be extracted into an exported definition that can be used independently of the property.
373
373
374
374
<figure>
375
375
<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">
376
-
<img src="diagrams/phone-browser-snapshot-viewport.svg" width="200" height="335" alt="The previous diagram, but highlights the area that's the 'snapshot' viewport, which includes everything except the top status bar and the bottom bar with the OS back button">
376
+
<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">
377
377
<figcaption>
378
-
An example of the [=snapshot viewport=] on a mobile OS.
378
+
An example of the [=snapshot root=] on a mobile OS.
379
379
The snapshot includes the URL bar, as this can be scrolled away.
380
380
The keyboard is included as this appears and disappears.
381
-
The top and bottom bars are part of the OS rather than the browser, so they're not included in the snapshot viewport.
381
+
The top and bottom bars are part of the OS rather than the browser, so they're not included in the snapshot root.
382
382
</figcaption>
383
383
</figure>
384
384
385
385
<figure>
386
386
<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">
387
-
<img src="diagrams/desktop-browser-snapshot-viewport.svg" width="132" height="79" alt="The previous diagram, but highlights the area that's the 'snapshot' viewport, which includes the web content area and the scrollbars" style="height:auto; width: 600px">
387
+
<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">
388
388
<figcaption>
389
-
An example of the [=snapshot viewport=] on a desktop OS.
389
+
An example of the [=snapshot root=] on a desktop OS.
390
390
This includes the scrollbars, but does not include the URL bar, as web content never appears in that area.
391
391
</figcaption>
392
392
</figure>
393
393
394
394
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=].
395
395
396
-
The <dfn>snapshot viewport origin</dfn> refers to the start of the block and inline axes of the [=snapshot viewport=].
396
+
The <dfn>snapshot root origin</dfn> refers to the top-left corner of the [=snapshot root=].
397
397
398
-
The <dfn>snapshot viewport size</dfn> refers to the width and height of the [=snapshot viewport=] as a [=/tuple=] of two numbers.
398
+
The <dfn>snapshot root size</dfn> refers to the width and height of the [=snapshot root=] as a [=/tuple=] of two numbers.
399
399
400
400
## The [=view-transition layer=] stacking layer ## {#view-transition-stacking-layer}
When this is true, [=this=]'s [=active DOM transition=]'s [=ViewTransition/transition root pseudo-element=] renders as a child of [=this=]'s [=document element=],
494
494
and [=this=]'s [=document element=] is its [=originating element=].
495
495
496
-
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 viewport=].
496
+
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=].
1. Set |height| to the current height of |capturedElement|'s [=new element=]'s [=border box=].
1212
1212
1213
-
1. Set |transform| to a transform that maps the |capturedElement|'s [=new element=]'s [=border box=] from document origin to its quad from the [=snapshot viewport origin=].
1213
+
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.
1214
1214
1215
1215
1. Set |writingMode| to the [=computed value=] of 'writing-mode' on |capturedElement|'s [=new element=].
0 commit comments