Skip to content

Commit 8c0e711

Browse files
committed
Clarify that observable image size refers to the border-box
Ink-overflow is an implementation detail, and up to the UA to apply. object-view-box doesn't directly affect the ink-overflow rect. See [resolution](w3c#8597 (comment)). Closes w3c#8597
1 parent a55950d commit 8c0e711

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

css-view-transitions-1/Overview.bs

+16-7
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,10 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
15001500

15011501
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`".
15021502

1503-
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`", then [=queue a global task=] on the [=DOM manipulation task source=],
1504-
given |transition|'s [=relevant global object=], to [=call the update callback=] of |transition|.
1503+
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`",
1504+
then [=queue a global task=] on the [=DOM manipulation task source=],
1505+
given |transition|'s [=relevant global object=],
1506+
to [=call the update callback=] of |transition|.
15051507

15061508
1. Set [=document/transition suppressing rendering=] to false.
15071509

@@ -1581,7 +1583,14 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
15811583
<div algorithm>
15821584
The <dfn>capture rendering characteristics</dfn> are as follows:
15831585

1584-
* The origin of |element|'s [=ink overflow rectangle=] is anchored to canvas origin.
1586+
* The origin of |element|'s [=border box=] is anchored to canvas origin.
1587+
1588+
* Expand the canvas to include |element|'s [=ink overflow rectangle=]. The captured image
1589+
should include the [=ink overflow region=], however the size of that region is
1590+
[=implementation-defined=] and is not web-observable.
1591+
1592+
Note: This means that ''object-view-box'' applies to |element|'s [=border box=], and UAs
1593+
have to apply the [=ink overflow region=] to the canvas internally.
15851594

15861595
* If the referenced element has a transform applied to it (or its ancestors),
15871596
then the transform is ignored.
@@ -1607,16 +1616,16 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
16071616
To <dfn lt="computing the interest rectangle|compute the interest rectangle">compute the interest rectangle</dfn> of an {{Element}} |element|, perform the following steps.
16081617
They return a rectangle.
16091618

1610-
Note: The interest rectangle is the subset of |element|'s [=ink overflow rectangle=] that should be captured.
1611-
This is required for cases where an element's ink overflow rectangle needs to be clipped because of hardware constraints.
1619+
Note: The interest rectangle is the subset of |element|'s [=border box=] that should be captured.
1620+
This is required for cases where an element's border box needs to be clipped because of hardware constraints.
16121621
For example, if it exceeds the maximum texture size.
16131622

16141623
1. Assert: |element| is not |element|'s [=node document=]'s [=document element=].
16151624

16161625
Note: The [=document element=] is captured differently, as specified in [=capture the image=].
16171626

1618-
1. If |element|'s [=ink overflow area=] does not exceed an implementation-defined maximum size,
1619-
then return a rectangle that is equal to |element|'s [=ink overflow rectangle=].
1627+
1. If |element|'s [=border area=] does not exceed an implementation-defined maximum size,
1628+
then return a rectangle that is equal to |element|'s [=border box=].
16201629

16211630
1. Otherwise:
16221631

0 commit comments

Comments
 (0)