Skip to content

Commit 96e2423

Browse files
authored
[css-view-transitions-1] Minor edits (#11968)
- Specify which documents is used for rendering supression - Specify reason for skipping transition when capture fails - Specify the correct document element in new capture Closes #11721 Closes #11723 Closes #11725
1 parent 4cb3a3a commit 96e2423

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css-view-transitions-1/Overview.bs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1291,14 +1291,15 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
12911291

12921292
Note: This happens if |transition| was [=skip the view transition|skipped=] before this point.
12931293

1294-
1. Set [=document/rendering suppression for view transitions=] to false.
1294+
1. Set |transition|'s [=relevant global object's=] [=associated document=]'s [=document/rendering suppression for view transitions=] to false.
12951295

12961296
1. If |transition|'s [=ViewTransition/initial snapshot containing block size=] is not equal to the [=snapshot containing block size=],
1297-
then [=skip the view transition=] for |transition|, and return.
1297+
then [=skip the view transition|skip=] |transition| with an "{{InvalidStateError}}" {{DOMException}} in |transition|'s [=relevant Realm=],
1298+
and return.
12981299

12991300
1. [=Capture the new state=] for |transition|.
13001301

1301-
If failure is returned, then [=skip the view transition=] for |transition| with an "{{InvalidStateError}}" {{DOMException}} in |transition|'s [=relevant Realm=],
1302+
If failure is returned, then [=skip the view transition|skip=] |transition| with an "{{InvalidStateError}}" {{DOMException}} in |transition|'s [=relevant Realm=],
13021303
and return.
13031304

13041305
1. [=list/For each=] |capturedElement| of |transition|'s [=ViewTransition/named elements=]' [=map/values=]:
@@ -1895,7 +1896,7 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
18951896

18961897
Note: Other rendering constraints are enforced via |capturedElement|'s [=new element=] being [=captured in a view transition=].
18971898

1898-
1. Let |newRect| be [=snapshot containing block=] if |capturedElement| is the [=document element=],
1899+
1. Let |newRect| be the [=snapshot containing block=] if |capturedElement|'s [=new element=] is the [=document element=],
18991900
otherwise, |capturedElement|'s [=border box=].
19001901

19011902
1. Set |width| to the current width of |newRect|.

0 commit comments

Comments
 (0)