Skip to content

Commit

Permalink
Call the view-transition page-visibility change steps
Browse files Browse the repository at this point in the history
This allows the CSS view-transitions spec to react to page visibility changes.
Specifically, skip the active transition once a page is hidden.

See w3c/csswg-drafts#9543
  • Loading branch information
noamr committed Feb 13, 2024
1 parent 531e50d commit 69dd0ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4033,6 +4033,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions/#document-rendering-suppression-for-view-transitions">rendering suppression for view transitions</dfn></li>
<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/#view-transition-page-visibility-change-steps">view transition page-visibility change steps</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions-2/#resolve-cross-document-view-transition">resolving cross-document view-transition</dfn></li>
</ul>

Expand Down Expand Up @@ -78087,6 +78088,9 @@ END:VCARD</pre>
<li><p>Run the <span>screen orientation change steps</span> with <var>document</var>.
<ref>SCREENORIENTATION</ref></p></li>

<li><p>Run the <span>view transition page-visibility change steps</span> with
<var>document</var>.</p></li>

<li>
<p>Run any <dfn export>page visibility change steps</dfn> which may be defined in other
specifications, with <span>visibility state</span> and <var>document</var>.</p>
Expand Down

0 comments on commit 69dd0ea

Please sign in to comment.