Skip to content

Commit

Permalink
Add PageRevealEvent interface with viewTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Oct 16, 2023
1 parent e9b3af0 commit c586460
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4023,6 +4023,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<ul class="brief">
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions/#perform-pending-transition-operations">perform pending transition operations</dfn></li>
<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/#document-active-view-transition">active view transition</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions/#viewtransition">ViewTransition</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-view-transitions-2/#viewtransition-is-inbound-cross-document-transition">is inbound cross-document view-transition</dfn></li>
</ul>

<p>The term <dfn data-x="css-styling-attribute"
Expand Down Expand Up @@ -93581,6 +93584,31 @@ dictionary <dfn dictionary>PageTransitionEventInit</dfn> : <span>EventInit</span
</div>


<h5>The <code>PageRevealEvent</code> interface</h5>

<pre><code class="idl">[Exposed=Window]
interface <dfn interface>PageRevealEvent</dfn> : <span>Event</span> {
readonly attribute <code>ViewTransition</code> <span data-x="dom-PageRevealEvent-viewTransition">viewTransition</span>;
};</code></pre>

<div w-nodev>

<p>The <dfn attribute for="PageRevealEvent"><code
data-x="dom-PageRevealEvent-viewTransition">viewTransition</code></dfn> attribute getter steps
are:

<ol>
<li><p>Let <var>viewTransition</var> be <span>this</span>'s <span>relevant global object</span>'s
<span>active document</span>'s <span>active view transition</span>.</p></li>

<li><p>If <var>viewTransition</var> is non-null and its
<span>is inbound cross-document view-transition</span> is true, then return <var>viewTransition</var>;
Otherwise return null.</p></li>
</ol>

</div>


<h5>The <code>BeforeUnloadEvent</code> interface</h5>

<pre><code class="idl">[Exposed=Window]
Expand Down Expand Up @@ -100369,7 +100397,7 @@ location.href = '#foo';</code></pre>

<li><p><span data-x="concept-event-fire">Fire an event</span> named
<code data-x="event-pagereveal">pagereveal</code> at <var>document</var>'s
<span>relevant global object</span>.</p></li>
<span>relevant global object</span>, using <code>PageRevealEvent</code>.</p></li>
</ol>

<h5>Scrolling to a fragment</h5>
Expand Down Expand Up @@ -138651,10 +138679,9 @@ INSERT INTERFACES HERE
<td> Fired at the <code>Window</code> when the page's <span>session history entry</span> stops
being the <span data-x="nav-active-history-entry">active entry</span>


<tr> <!-- pageshow -->
<tr> <!-- pagereveal -->
<td> <dfn event for="Window"><code data-x="event-pagereveal">pagereveal</code></dfn>
<td> <code>Event</code>
<td> <code>PageRevealEvent</code>
<td> <code>Window</code>
<td> Fired at the <code>Window</code> when the page begins to render, for the first time after
it has been initialized or <span data-x="reactivate a document">reactivated</span>.
Expand Down

0 comments on commit c586460

Please sign in to comment.