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

Defer persisted state restore when view transition is started #9996

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4031,6 +4031,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions/#activate-view-transition">activate view transition</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions/#viewtransition"><code>ViewTransition</code></dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions-2/#document-resolve-cross-document-view-transition">resolving cross-document view-transition</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions/#viewtransition">potentially defer persisted state restoration due to view transition</dfn>
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't seem to go to the right place

</ul>

<p>The term <dfn data-x="css-styling-attribute"
Expand Down Expand Up @@ -101665,6 +101666,14 @@ location.href = '#foo';</code></pre>
history entry</span> <var>entry</var>:</p>

<ol>
<li>
<p>If the result of calling
<span>potentially defer persisted state restoration due to view transition</span> is
"<code data-x="">defer</code>", then return.</p>

<p class="note">This allows capturing the current state for the view transition before restoring
scroll position or other state that could be restored.</p>
</li>
<li>
<p>If <var>entry</var>'s <span data-x="she-scroll-restoration-mode">scroll restoration
mode</span> is "<code data-x="dom-ScrollRestoration-auto">auto</code>", and <var>entry</var>'s
Expand Down