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
[css-view-transitions-1] Clarify that observable image size refers to the border-box, and observed natural size is not affected by hw constraints (#8819)
* 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](#8597 (comment)).
Closes#8597
* Fix regarding texture size
* Add changelog entries
* Apply nits
* clarify note
Issue: Specify what happens with 'mix-blend-mode'.
1602
1606
</div>
1603
1607
1604
-
### [=Compute the interest rectangle=] ### {#compute-the-interest-rectangle-algorithm}
1605
-
1606
-
<div algorithm>
1607
-
To <dfn lt="computing the interest rectangle|compute the interest rectangle">compute the interest rectangle</dfn> of an {{Element}} |element|, perform the following steps.
1608
-
They return a rectangle.
1609
-
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.
1612
-
For example, if it exceeds the maximum texture size.
1613
-
1614
-
1. Assert: |element| is not |element|'s [=node document=]'s [=document element=].
1615
-
1616
-
Note: The [=document element=] is captured differently, as specified in [=capture the image=].
1617
-
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=].
1620
-
1621
-
1. Otherwise:
1622
-
1623
-
Issue: Define the algorithm used to clip the snapshot when it exceeds max size.
@@ -1810,6 +1792,8 @@ Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221
1810
1792
* Add support for :only-child. See <a href="https://github.com/w3c/csswg-drafts/issues/8057">issue 8057</a>.
1811
1793
* Add concept of a tree of pseudo-elements under [=pseudo-element root=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8113">issue 8113</a>.
1812
1794
* When skipping a transition, the {{UpdateCallback}} is called in own task rather than synchronosly. See <a href="https://github.com/w3c/csswg-drafts/issues/7904">issue 7904</a>
1795
+
* When capturing images, at least the in-viewport part of the image should be captured, downscale if needed. See <a href="https://github.com/w3c/csswg-drafts/issues/8561">issue 8561</a>.
1796
+
* Applying the [=ink overflow=] to the captured image is implementation defined, and doesn't affect the image's [=natural size=]. See <a href="https://github.com/w3c/csswg-drafts/issues/8597">issue 8597</a>.
1813
1797
1814
1798
<h3 id="changes-since-2022-10-25">
1815
1799
Changes from <a href="https://www.w3.org/TR/2022/WD-css-view-transitions-1-20221025/">2022-10-25 Working Draft (FPWD)</a>
0 commit comments