diff --git a/index.html b/index.html index 86484a4..08dc5d5 100644 --- a/index.html +++ b/index.html @@ -39,6 +39,21 @@ xref: ["dom", "html", "geometry-1"], }; +
@@ -95,7 +110,7 @@

Description

Extensions to the Window interface

This document extends the Window - interface defined by [[!HTML]]. + interface defined by [[HTML]].

             partial interface Window {
@@ -118,7 +133,7 @@ 

Extensions to the Window interface

-
+

The VisualViewport interface

A VisualViewport object represents the visual viewport for a window's @@ -291,35 +306,34 @@

The VisualViewport interface

-
-

Events

-

Resizing the viewport

-

- The user agent must fire an Event - named resize at the VisualViewport object if any - of its height, width, or scale attributes change - (e.g. in response to user interaction, scrollbars - appearing/disappearing). The resize event must not bubble and must - not be cancellable. -

-

- These events follow the procedure defined in - section 12.1 of the - CSSOM View module. -

-

Scrolling

-

- The user agent must fire an Event named scroll - at the VisualViewport object if either of its offsetTop - or offsetLeft attributes change (e.g in response to user - interaction, by an API, or by the resize of the visual viewport). The - scroll event must not bubble and must not be cancellable. -

-

- These events follow the procedure defined in - section 12.2 - of the CSSOM View module. -

+
+

Additions to the CSSOM-VIEW Events section

+

Append following step as the last step of run the resize steps:

+
+
    +
  1. + If doc's associated Window's VisualViewport's scale, + width, or height properties have changed since + the last time these steps were run, fire an event named + resize at the doc's associated Window's + VisualViewport. +
  2. +
+
+ +

Replace step 1.1 of run the scroll steps with:

+
+
    +
  1. +

    + If target is a Document, fire an event named scroll that bubbles at target. +

    + If target is a Document, fire an event named scroll that + bubbles at target. Then, fire an event named scroll at the + VisualViewport of the Document's associated Window. +
  2. +
+