Skip to content

Commit 8de8091

Browse files
authored
Update spec based on resolved issues
Applies resolutions from following issues: - #7956 - #7874 - #7812
1 parent 02fca19 commit 8de8091

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

css-view-transitions-1/Overview.bs

+15-1
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
611611

612612
Issue: The link for "paint order" doesn't seem right.
613613
Is there a more canonical definition?
614+
615+
1. If the |element|'s ancestor [=skips its contents=], then [=continue=].
614616

615617
1. Let |transitionName| be the [=computed value=] of 'view-transition-name' for |element|.
616618

@@ -706,6 +708,8 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
706708

707709
Issue: The link for "paint order" doesn't seem right.
708710
Is there a more canonical definition?
711+
712+
1. If the |element|'s ancestor [=skips its contents=], then [=continue=].
709713

710714
1. Let |transitionName| be the [=computed value=] of 'view-transition-name' for |element|.
711715

@@ -786,7 +790,13 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
786790

787791
Note: The ready promise would've been resolved if {{ViewTransition/skipTransition()}} is called after we start animating.
788792

789-
1. [=Reject=] |transition|'s [=ViewTransition/finished promise=] with |reason|.
793+
1. [=promise/React=] to [=ViewTransition/DOM updated promise=]:
794+
795+
* If [=ViewTransition/DOM updated promise=] was resolved,
796+
then [=resolve=] |transition|'s [=ViewTransition/finished promise=].
797+
798+
* If [=ViewTransition/DOM updated promise=] was rejected with reason |r|,
799+
then [=reject=] |transition|'s [=ViewTransition/finished promise=] with |r|.
790800
</div>
791801

792802
## [=Capture the image=] ## {#capture-the-image-algorithm}
@@ -1070,6 +1080,10 @@ urlPrefix: https://wicg.github.io/navigation-api/; type: interface;
10701080
1. At the [=user-agent origin=],
10711081
set |new|'s 'object-view-box' property to a value that when applied to |new|,
10721082
will cause the view box to coincide with [=new element=]'s [=border box=] in the image.
1083+
1084+
This algorithm must be executed to update styles in [=user-agent origin=] if its effects can be observed by a web API.
1085+
1086+
Note: An example of such a web API is `window.getComputedStyle(document.documentElement, "::view-transition")`.
10731087
</div>
10741088

10751089
<div algorithm>

0 commit comments

Comments
 (0)