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

Wrap "activate view transition" with script prepare/clean up #10284

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Apr 18, 2024

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.

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/browsing-the-web.html ( diff )

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.
source Show resolved Hide resolved
Copy link
Member

@domenic domenic left a 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>
Copy link
Member

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

Choose a reason for hiding this comment

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

Suggested change
<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

@khushalsagar
Copy link
Contributor

Thanks. LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants