diff --git a/cssom-view-1/Overview.bs b/cssom-view-1/Overview.bs index 06d711c2ba68..bde99a23160b 100644 --- a/cssom-view-1/Overview.bs +++ b/cssom-view-1/Overview.bs @@ -1161,7 +1161,7 @@ The scrollIntoView(arg 1. If the element does not have any associated [=CSS/box=], or is not available to user-agent features, then return. -1. Scroll the element into view +1. Scroll the element into view with behavior, block, and inline. 1. Optionally perform some other action that brings the element to the user's attention. @@ -1313,19 +1313,19 @@ The clientHeight attribute must run these steps

{{Element}} Scrolling Members

-To scroll an element into view element, +To scroll a target into view target, which is an Element or Range, with a scroll behavior behavior, a block flow direction position block, and an inline base direction position inline, means to run these steps for each ancestor element or viewport that establishes a scrolling box scrolling box, in order of innermost to outermost scrolling box: -1. If the {{Document}} associated with element is not same origin with the {{Document}} associated with the element or viewport associated with box, terminate these steps. -1. Let element bounding border box be the box that the return value of invoking {{Element/getBoundingClientRect()}} on element represents. -1. Let scrolling box edge A be the beginning edge in the block flow direction of scrolling box, and let element edge A be element bounding border box's edge on the same physical side as that of scrolling box edge A. -1. Let scrolling box edge B be the ending edge in the block flow direction of scrolling box, and let element edge B be element bounding border box's edge on the same physical side as that of scrolling box edge B. -1. Let scrolling box edge C be the beginning edge in the inline base direction of scrolling box, and let element edge C be element bounding border box's edge on the same physical side as that of scrolling box edge C. -1. Let scrolling box edge D be the ending edge in the inline base direction of scrolling box, and let element edge D be element bounding border box's edge on the same physical side as that of scrolling box edge D. +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 target bounding border box be the box represented by the return value of invoking Element's {{Element/getBoundingClientRect()}}, if target is an Element, or Range's {{Range/getBoundingClientRect()}}, if target is a Range. +1. Let scrolling box edge A be the beginning edge in the block flow direction of scrolling box, and let element edge A be target bounding border box's edge on the same physical side as that of scrolling box edge A. +1. Let scrolling box edge B be the ending edge in the block flow direction of scrolling box, and let element edge B be target bounding border box's edge on the same physical side as that of scrolling box edge B. +1. Let scrolling box edge C be the beginning edge in the inline base direction of scrolling box, and let element edge C be target bounding border box's edge on the same physical side as that of scrolling box edge C. +1. Let scrolling box edge D be the ending edge in the inline base direction of scrolling box, and let element edge D be target bounding border box's edge on the same physical side as that of scrolling box edge D. 1. Let element height be the distance between element edge A and element edge B. 1. Let scrolling box height be the distance between scrolling box edge A and scrolling box edge B. 1. Let element width be the distance between element edge C and element edge D. @@ -1334,7 +1334,7 @@ a scrolling box scrolling box, in order of innermost to outerm 1. If block is "start", then align element edge A with scrolling box edge A. 1. Otherwise, if block is "end", then align element edge B with scrolling box edge B. - 1. Otherwise, if block is "center", then align the center of element bounding border box with the center of scrolling box in scrolling box's block flow direction. + 1. Otherwise, if block is "center", then align the center of target bounding border box with the center of scrolling box in scrolling box's block flow direction. 1. Otherwise, block is "nearest":
If element edge A and element edge B are both outside scrolling box edge A and scrolling box edge B @@ -1350,7 +1350,7 @@ a scrolling box scrolling box, in order of innermost to outerm
1. If inline is "start", then align element edge C with scrolling box edge C. 1. Otherwise, if inline is "end", then align element edge D with scrolling box edge D. - 1. Otherwise, if inline is "center", then align the center of element bounding border box with the center of scrolling box in scrolling box's inline base direction. + 1. Otherwise, if inline is "center", then align the center of target bounding border box with the center of scrolling box in scrolling box's inline base direction. 1. Otherwise, inline is "nearest":
If element edge C and element edge D are both outside scrolling box edge C and scrolling box edge D