Skip to content

Commit 94443a1

Browse files
committed
Fix regarding texture size
1 parent 440f67a commit 94443a1

File tree

1 file changed

+8
-37
lines changed

1 file changed

+8
-37
lines changed

css-view-transitions-1/Overview.bs

+8-37
Original file line numberDiff line numberDiff line change
@@ -1500,10 +1500,7 @@ 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`",
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|.
1503+
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`update-callback-called`", then [=call the update callback=] of |transition|.
15071504

15081505
1. Set [=document/transition suppressing rendering=] to false.
15091506

@@ -1572,25 +1569,17 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
15721569
over an infinite transparent canvas,
15731570
following the [=capture rendering characteristics=].
15741571

1575-
1. Let |interestRectangle| be the result of [=computing the interest rectangle=] for |element|.
1572+
1. Return the portion of the canvas that includes |element|'s [=ink overflow rectangle=] as an image.
1573+
The [=natural size=] of the image must be |element|'s [=border box=]'s [=size=].
15761574

1577-
1. Return the portion of the canvas within |interestRectangle| as an image.
1578-
The natural size of the image is equal to the |interestRectangle| bounds.
15791575
</div>
15801576

15811577
### [=Capture rendering characteristics=] ### {#capture-rendering-characteristics-algorithm}
15821578

15831579
<div algorithm>
15841580
The <dfn>capture rendering characteristics</dfn> are as follows:
15851581

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.
1582+
* The origin of |element|'s [=ink overflow rectangle=] is anchored to canvas origin.
15941583

15951584
* If the referenced element has a transform applied to it (or its ancestors),
15961585
then the transform is ignored.
@@ -1599,6 +1588,10 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
15991588

16001589
* Effects on the element, such as 'opacity' and 'filter' are applied to the capture.
16011590

1591+
* Implementations may clip the rendered contents if the [=ink overflow rectangle=] exceeds some [=implementation-defined=] maximum.
1592+
However, the captured image should include, at the very least, the contents of |element| that intersect with the [=viewport=].
1593+
Implementations may adjust the rasterization quality to account for elements with a large [=border box=] that are transformed into view.
1594+
16021595
* [=list/For each=] |descendant| of [=shadow-including descendant=] {{Element}} and [=pseudo-element=] of |element|,
16031596
if |descendant| has a [=computed value=] of 'view-transition-name' that is not ''view-transition-name/none'',
16041597
then skip painting |descendant|.
@@ -1610,28 +1603,6 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
16101603
Issue: Specify what happens with 'mix-blend-mode'.
16111604
</div>
16121605

1613-
### [=Compute the interest rectangle=] ### {#compute-the-interest-rectangle-algorithm}
1614-
1615-
<div algorithm>
1616-
To <dfn lt="computing the interest rectangle|compute the interest rectangle">compute the interest rectangle</dfn> of an {{Element}} |element|, perform the following steps.
1617-
They return a rectangle.
1618-
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.
1621-
For example, if it exceeds the maximum texture size.
1622-
1623-
1. Assert: |element| is not |element|'s [=node document=]'s [=document element=].
1624-
1625-
Note: The [=document element=] is captured differently, as specified in [=capture the image=].
1626-
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=].
1629-
1630-
1. Otherwise:
1631-
1632-
Issue: Define the algorithm used to clip the snapshot when it exceeds max size.
1633-
</div>
1634-
16351606
## [=Handle transition frame=] ## {#handle-transition-frame-algorithm}
16361607

16371608
<div algorithm>

0 commit comments

Comments
 (0)