Skip to content

Commit 440f67a

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 0000ddc commit 440f67a

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

css-view-transitions-1/Overview.bs

+16-6
Original file line numberDiff line numberDiff line change
@@ -1500,7 +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 [=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|.
15041507

15051508
1. Set [=document/transition suppressing rendering=] to false.
15061509

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

1583-
* 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.
15841594

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

1609-
Note: The interest rectangle is the subset of |element|'s [=ink overflow rectangle=] that should be captured.
1610-
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.
16111621
For example, if it exceeds the maximum texture size.
16121622

16131623
1. Assert: |element| is not |element|'s [=node document=]'s [=document element=].
16141624

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

1617-
1. If |element|'s [=ink overflow area=] does not exceed an implementation-defined maximum size,
1618-
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=].
16191629

16201630
1. Otherwise:
16211631

0 commit comments

Comments
 (0)