Skip to content

Commit b185167

Browse files
committed
[cssom-view-1] Remove unused behavior parameter
...from "determine the scroll-into-view position". This isn't used, and seems to be a leftover from before this algorithm was split out of "scroll a target into view".
1 parent da5dbad commit b185167

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cssom-view-1/Overview.bs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,6 @@ The <dfn attribute for=Element>currentCSSZoom</dfn> attribute must return the
14621462
<div algorithm>
14631463

14641464
To <dfn export>determine the scroll-into-view position</dfn> of a <var>target</var>, which is an <a for="/">Element</a>, [=pseudo-element=], or <a>Range</a>,
1465-
with a scroll behavior <var>behavior</var>,
14661465
a block flow direction position <var>block</var>,
14671466
an inline base direction position <var>inline</var>,
14681467
and a <a>scrolling box</a> <var>scrolling box</var>,
@@ -1526,7 +1525,7 @@ means to run these steps:
15261525
1. For each ancestor element or <a>viewport</a> that establishes a <a>scrolling box</a> <var>scrolling box</var>,
15271526
in order of innermost to outermost <a>scrolling box</a>, run these substeps:
15281527
1. If the {{Document}} associated with <var>target</var> is not <a>same origin</a> with the {{Document}} associated with the element or <a>viewport</a> associated with <var>scrolling box</var>, terminate these steps.
1529-
1. Let <var>position</var> be the scroll position resulting from running the steps to <a>determine the scroll-into-view position</a> of <var>target</var> with <var>behavior</var> as the |scroll behavior|,
1528+
1. Let <var>position</var> be the scroll position resulting from running the steps to <a>determine the scroll-into-view position</a> of <var>target</var> with
15301529
<var>block</var> as the |block flow position|, <var>inline</var> as the |inline base direction position| and <var>scrolling box</var> as the |scrolling box|.
15311530
1. If <var>position</var> is not the same as <var>scrolling box</var>'s current scroll position, or <var>scrolling box</var> has an ongoing <a>smooth scroll</a>,
15321531
1. <dl class=switch>

0 commit comments

Comments
 (0)