Skip to content

Commit

Permalink
[cssom-view-1] Remove unused behavior parameter
Browse files Browse the repository at this point in the history
...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".
  • Loading branch information
AtkinsSJ committed Feb 12, 2025
1 parent da5dbad commit b185167
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cssom-view-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,6 @@ The <dfn attribute for=Element>currentCSSZoom</dfn> attribute must return the
<div algorithm>

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>,
with a scroll behavior <var>behavior</var>,
a block flow direction position <var>block</var>,
an inline base direction position <var>inline</var>,
and a <a>scrolling box</a> <var>scrolling box</var>,
Expand Down Expand Up @@ -1526,7 +1525,7 @@ means to run these steps:
1. For each ancestor element or <a>viewport</a> that establishes a <a>scrolling box</a> <var>scrolling box</var>,
in order of innermost to outermost <a>scrolling box</a>, run these substeps:
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.
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|,
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>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|.
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>,
1. <dl class=switch>
Expand Down

0 comments on commit b185167

Please sign in to comment.