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
Wrap "activate view transition" with script prepare/clean up #10284
base: main
Are you sure you want to change the base?
Conversation
This ensures that we perform a microtask checkpoint (and set the incumbent script) right after resolving/rejecting the `ViewTransition` promises. It's necessary as those promises need to be resolved before the other rendering operations, mainly style/layout.
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.
Editorial nits, content LGTM. Please also fill out the issue template appropriately.
<p>If <var>transition</var> is not null, then:</p> | ||
|
||
<ol> | ||
<li><p><span>Prepare to run script</span> given <var>document</var>.</p></li> |
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.
Newlines between <li>
s, like elsewhere in the document
<li><p><span>Clean up after running script</span> given <var>document</var>.</p></li> | ||
</ol> | ||
|
||
<p class=note>Activating a view transition might resolve/reject promises, so by wrapping the |
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.
<p class=note>Activating a view transition might resolve/reject promises, so by wrapping the | |
<p class="note">Activating a view transition might resolve/reject promises, so by wrapping the |
like elsewhere
Thanks. LGTM! |
This ensures that we perform a microtask checkpoint (and set the incumbent script) right after resolving/rejecting the
ViewTransition
promises.It's necessary as those promises need to be resolved before the other rendering operations, mainly style/layout.
(See WHATWG Working Mode: Changes for more details.)
/browsing-the-web.html ( diff )