Skip to content

Commit

Permalink
[css-view-transitions-1] Clarify that root snapshot captures more tha…
Browse files Browse the repository at this point in the history
…n just the element. #9138 (#9152)

Co-authored-by: Khushal Sagar <[email protected]>
  • Loading branch information
fantasai and khushalsagar authored Aug 3, 2023
1 parent 8c953b4 commit 33020a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions css-view-transitions-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,9 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;

1. If |element| is the [=document element=], then:

1. Render the region of the |element| and the [=/document=]'s [=Document/top layer=] that intersects the [=snapshot containing block=],
1. Render the region of document
(including its [=canvas background=] and any [=Document/top layer=] content)
that intersects the [=snapshot containing block=],
on a transparent canvas the size of the [=snapshot containing block=],
following the [=capture rendering characteristics=], and these additional characteristics:

Expand Down Expand Up @@ -1663,7 +1665,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
</figcaption>
</figure>

1. Return the canvas as an image.
1. Return this canvas as an image.
The natural size of the image is equal to the [=snapshot containing block=].

1. Otherwise:
Expand All @@ -1673,7 +1675,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
over an infinite transparent canvas,
following the [=capture rendering characteristics=].

1. Return the portion of the canvas that includes |element|'s [=ink overflow rectangle=] as an image.
1. Return the portion of this canvas that includes |element|'s [=ink overflow rectangle=] as an image.
The [=natural dimensions=] of this image must be those of its [=principal box|principal=] [=border box=],
and its origin must correspond to that [=border box=]'s origin,
such that the image represents the contents of this [=border box=]
Expand Down

0 comments on commit 33020a5

Please sign in to comment.