diff --git a/source b/source index 9873d8e28fb..f3902ddb2f1 100644 --- a/source +++ b/source @@ -4017,12 +4017,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
The following features are defined in CSS View Transitions 1: +
The following features are defined in CSS View Transitions: CSSVIEWTRANSITIONS
ViewTransition
The term HashChangeEventInit : EventInit { +
PageRevealEvent
interface[Exposed=Window]
+interface PageRevealEvent : Event {
+ constructor(DOMString type, optional PageRevealEventInit eventInitDict = {});
+ readonly attribute ViewTransition
? viewTransition;
+};
+
+dictionary PageRevealEventInit : EventInit {
+ ViewTransition
? viewTransition = null;
+};
+
+ event.viewTransition
Returns the ViewTransition
object that represents an inbound cross-document view
+ transition, if such transition is active when the event is fired. Otherwise, returns null.
The viewTransition
attribute must return the
+ value it was initialized to.
PageTransitionEvent
interface[Exposed=Window]
@@ -100318,6 +100350,8 @@ location.href = '#foo';
Set document's page showing flag to true.
Set document's has been revealed to false.
+Update the visibility state of document to "visible
".
A Document
has a boolean has been revealed, initially false. It is used
+ to ensure that the pagereveal
event is fired once for each
+ activation of the Document
(once when it's rendered initially, and once for each
+ reactivation).
To reveal a Document
document:
If document's has been revealed is true, then return.
Set document's has been revealed to true.
Let transition be the result of + resolving cross-document view-transition for document.
Fire an event named
+ pagereveal
at document's
+ relevant global object, using PageRevealEvent
with its viewTransition
set to
+ transition.
If transition is not null, then activate transition.
Though pagereveal
is guaranteed to be fired
+ during the first update the rendering step that displays an up-to-date version of the
+ page, user agents are free to display a cached frame of the page before firing it. This prevents
+ the presence of a pagereveal
handler from delaying the
+ presentation of such cached frame.
To scroll to the fragment given a @@ -107010,6 +107078,9 @@ import "https://example.com/foo/../module2.mjs"; +
For each fully active Document
in docs,
+ reveal that Document
.
For each fully active Document
in docs, flush
autofocus candidates for that Document
if its node navigable
is a top-level traversable.
onoffline
offline
ononline
online
onpagehide
pagehide
+ onpagereveal
pagereveal
onpageshow
pageshow
onpopstate
popstate
onrejectionhandled
rejectionhandled
@@ -108871,6 +108943,7 @@ interface mixin WindowEventHandlers {
attribute EventHandler onoffline;
attribute EventHandler ononline;
attribute EventHandler onpagehide;
+ attribute EventHandler onpagereveal;
attribute EventHandler onpageshow;
attribute EventHandler onpopstate;
attribute EventHandler onrejectionhandled;
@@ -137752,6 +137825,12 @@ interface External {
pagehide
event handler for Window
object
onpagereveal
+ body
+ pagereveal
event handler for Window
object
+ onpageshow
body
@@ -138622,6 +138701,13 @@ INSERT INTERFACES HERE
Window
when the page's session history entry stops
being the active entry
+ pagereveal
+ PageRevealEvent
+ Window
+ Window
when the page begins to render for the first time after
+ it has been initialized or reactivated
+
pageshow
PageTransitionEvent