-
Notifications
You must be signed in to change notification settings - Fork 683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-view-transitions-1] Rename starting function and add callback instead of opts dict #7990
Conversation
css-view-transitions-1/Overview.bs
Outdated
@@ -747,7 +743,7 @@ The {{ViewTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=Vi | |||
|
|||
Note: This happens if |transition| was [=skip the page transition|skipped=] before this point. | |||
|
|||
1. [=Call the DOM update callback=] of |transition|. | |||
1. If it is not null, [=Call the DOM update callback=] of |transition|. Otherwise, treat |transition|'s [=ViewTransition/DOM updated promise] in subsequent steps as resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update the text here: https://drafts.csswg.org/css-view-transitions-1/#call-the-dom-update-callback to resolve the DOM updated promise if the callback is null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
css-view-transitions-1/Overview.bs
Outdated
@@ -834,7 +830,7 @@ The {{ViewTransition/domUpdated}} [=getter steps=] are to return [=this's=] [=Vi | |||
|
|||
1. [=Assert=]: |transition|'s [=ViewTransition/phase=] is not "`done`". | |||
|
|||
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition|. | |||
1. If |transition|'s [=ViewTransition/phase=] is [=phases/before=] "`dom-update-callback-called`", then [=call the DOM update callback=] of |transition| if it is not null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't need this to change either then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
PTAL |
Co-authored-by: Khushal Sagar <63884798+khushalsagar@users.noreply.github.com>
Co-authored-by: Khushal Sagar <63884798+khushalsagar@users.noreply.github.com>
Callback instead of dictionary: #7827 (resolved by editor's discretion)
Rename starting function to startViewTransition: #7788 (resolved by CSSWG consensus)