diff --git a/css-scroll-snap-2/Overview.bs b/css-scroll-snap-2/Overview.bs index 45b4fe44e4c..25cb67b1e01 100644 --- a/css-scroll-snap-2/Overview.bs +++ b/css-scroll-snap-2/Overview.bs @@ -159,8 +159,7 @@ Initial scroll target 1. Let |target| be the initial scroll target for |scrollcontainer|. 1. Let |position| be the result of running the steps to determine the scroll-into-view position of |target| - with behavior set to "auto", - block set to "start", + with block set to "start", inline set to "nearest", and scrolling box set to |scrollcontainer|. 1. Set |scrollcontainer|'s initial scroll position to |position|. diff --git a/cssom-view-1/Overview.bs b/cssom-view-1/Overview.bs index d6007549a16..02e8a08a692 100644 --- a/cssom-view-1/Overview.bs +++ b/cssom-view-1/Overview.bs @@ -1299,7 +1299,7 @@ The scrollIntoView(arg 1. Set behavior to the {{ScrollOptions/behavior}} dictionary member of options. 1. Set block to the {{ScrollIntoViewOptions/block}} dictionary member of options. 1. Set inline to the {{ScrollIntoViewOptions/inline}} dictionary member of options. - 1. If the {{ScrollIntoViewOptions/container}} dictionary member of options, + 1. If the {{ScrollIntoViewOptions/container}} dictionary member of options is "nearest", set container to this element. 1. Otherwise, if arg is false, then set block to "end". 1. If the element does not have any associated [=CSS/box=], @@ -1462,7 +1462,6 @@ The currentCSSZoom attribute must return the
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, and a scrolling box scrolling box, @@ -1511,7 +1510,7 @@ run the following steps:
If element edge D is outside scrolling box edge D and element width is less than scrolling box width
Align element edge D with scrolling box edge D. - 1. Return position. +1. Return position.
@@ -1526,7 +1525,7 @@ means to run these steps: 1. For each ancestor element or viewport that establishes a scrolling box scrolling box, in order of innermost to outermost scrolling box, run these substeps: 1. If the {{Document}} associated with target is not same origin with the {{Document}} associated with the element or viewport associated with scrolling box, terminate these steps. - 1. Let position be the scroll position resulting from running the steps to determine the scroll-into-view position of target with behavior as the |scroll behavior|, + 1. Let position be the scroll position resulting from running the steps to determine the scroll-into-view position of target with block as the |block flow position|, inline as the |inline base direction position| and scrolling box as the |scrolling box|. 1. If position is not the same as scrolling box's current scroll position, or scrolling box has an ongoing smooth scroll, 1.