Skip to content

Commit d3ac589

Browse files
committed
Use inset()
1 parent 847a808 commit d3ac589

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

css-view-transitions-1/Overview.bs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
729729
:: ''object-view-box/none'' if |element| is the [=document element=],
730730
otherwise, an 'object-view-box' value that, when applied to the old image,
731731
will cause the view box to coincide with |element|'s [=border box=] in the image.
732+
This must be expressed using ''<basic-shape>/inset()''.
732733

733734
: 'writing-mode'
734735
:: The 'writing-mode' of |element|.
@@ -1058,8 +1059,6 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
10581059

10591060
Note: The above code example contains variables to be replaced.
10601061

1061-
Issue: Which of ''xywh()''/''rect()''/''inset()'' should we use?
1062-
10631062
1. If |capturedElement|'s [=new element=] is not null, then:
10641063

10651064
1. Let |new| be a new ''::view-transition-new()'' [=replaced element=] pseudo-element,
@@ -1202,6 +1201,7 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
12021201

12031202
1. Let |newViewBox| be an ''object-view-box'' value that when applied to |new|,
12041203
will cause the view box to coincide with |capturedElement|'s [=new element=]'s [=border box=] in the image.
1204+
This must be expressed using ''<basic-shape>/inset()''.
12051205

12061206
1. If |capturedElement|'s [=captured element/new view-box rule=] is null,
12071207
then set |capturedElement|'s [=captured element/new view-box rule=] to a new {{CSSStyleRule}} representing the following CSS,
@@ -1218,8 +1218,6 @@ urlPrefix: https://html.spec.whatwg.org/multipage/rendering.html; type: dfn;
12181218

12191219
Note: The above code example contains variables to be replaced.
12201220

1221-
Issue: Which of ''xywh()''/''rect()''/''inset()'' should we use?
1222-
12231221
This algorithm must be executed to update styles in [=user-agent origin=] if its effects can be observed by a web API.
12241222

12251223
Note: An example of such a web API is `window.getComputedStyle(document.documentElement, "::view-transition")`.

0 commit comments

Comments
 (0)