Skip to content
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

Merged
merged 4 commits into from
Nov 3, 2022

Conversation

vmpstr
Copy link
Member

@vmpstr vmpstr commented Oct 31, 2022

Callback instead of dictionary: #7827 (resolved by editor's discretion)
Rename starting function to startViewTransition: #7788 (resolved by CSSWG consensus)

@vmpstr vmpstr requested a review from khushalsagar October 31, 2022 18:19
@@ -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.
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@@ -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.
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@vmpstr
Copy link
Member Author

vmpstr commented Nov 3, 2022

PTAL

css-view-transitions-1/Overview.bs Outdated Show resolved Hide resolved
css-view-transitions-1/Overview.bs Outdated Show resolved Hide resolved
vmpstr and others added 2 commits November 3, 2022 12:16
Co-authored-by: Khushal Sagar <63884798+khushalsagar@users.noreply.github.com>
Co-authored-by: Khushal Sagar <63884798+khushalsagar@users.noreply.github.com>
@khushalsagar khushalsagar merged commit b300cc4 into w3c:main Nov 3, 2022
@vmpstr vmpstr deleted the startviewtransition branch November 3, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants