diff --git a/cssom-view-1/Overview.bs b/cssom-view-1/Overview.bs index 46755377c82..48b19fa725c 100644 --- a/cssom-view-1/Overview.bs +++ b/cssom-view-1/Overview.bs @@ -412,9 +412,11 @@ This specification depends on the WHATWG Infra standard. [[!INFRA]]

Scrolling

+
+ When a user agent is to perform a scroll of a scrolling box box, to a given position position, -an associated element element and optionally a scroll behavior behavior +an associated element or [=pseudo-element=] element and optionally a scroll behavior behavior (which is "auto" if omitted), the following steps must be run: @@ -434,6 +436,10 @@ the following steps must be run: Note: If the scroll position did not change as a result of the user interaction or programmatic invocation, where no translations were applied as a result, then no scrollend event fires because no scrolling occurred. +
+ +
+ When a user agent is to perform a scroll of a viewport to a given position position and optionally a scroll behavior behavior (which is "auto" if omitted) it must perform a coordinated viewport scroll by following these steps: @@ -464,6 +470,8 @@ so that the layout viewport is scrolled before the visual viewport. This is done reasons to ensure consistent scroll event ordering. See the example above for a visual depiction. +
+
The user pinch-zooms into the document and ticks their mouse wheel, requesting the user agent scroll the document down by 50px. Because the document is pinch-zoomed in, the visual viewport has 20px of room to scroll. The user agent distributes the scroll by scrolling the visual viewport down by @@ -1445,8 +1453,9 @@ The currentCSSZoom attribute must return the

{{Element}} Scrolling Members

+
-To determine the scroll-into-view position of a target, which is an Element or Range, +To determine the scroll-into-view position of a target, which is an Element, [=pseudo-element=], or Range, with a scroll behavior behavior, a block flow direction position block, an inline base direction position inline, @@ -1497,9 +1506,10 @@ run the following steps:
Align element edge D with scrolling box edge D. 1. Return position. +
- -To scroll a target into view target, which is an Element or Range, +
+To scroll a target into view target, which is an Element, [=pseudo-element=], or Range, with a scroll behavior behavior, a block flow direction position block, and an inline base direction position inline, @@ -1522,9 +1532,11 @@ a scrolling box scrolling box, in order of innermost to outerm 1. Perform a scroll of the viewport to position, with root element as the associated element and behavior as the scroll behavior. +
+
-To scroll an element element to x,y optionally with a scroll behavior behavior (which is "auto" if omitted) means to: +To scroll an element (or [=pseudo-element=]) element to x,y optionally with a scroll behavior behavior (which is "auto" if omitted) means to: 1. Let box be element's associated scrolling box. 1.
@@ -1544,7 +1556,7 @@ To scroll an element element to x,y 1. Let position be the scroll position box would have by aligning scrolling area x-coordinate x with the left of box and aligning scrolling area y-coordinate y with the top of box. 1. If position is the same as box's current scroll position, and box does not have an ongoing smooth scroll, abort these steps. 1. Perform a scroll of box to position, element as the associated element and behavior as the scroll behavior. - +

Extensions to the {{HTMLElement}} Interface