You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1158,16 +1159,16 @@ The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>
1158
1159
1. Let <var>behavior</var> be "<code>auto</code>".
1159
1160
1. Let <var>block</var> be "<code>start</code>".
1160
1161
1. Let <var>inline</var> be "<code>nearest</code>".
1161
-
1. Let <var>notIfViewed</var> be false.
1162
+
1. Let <var>scrollMode</var> be "<code>always</code>".
1162
1163
1. If <var>arg</var> is a {{ScrollIntoViewOptions}} dictionary, then:
1163
1164
1. Set <var>behavior</var> to the {{ScrollOptions/behavior}} dictionary member of <var>options</var>.
1164
1165
1. Set <var>block</var> to the {{ScrollIntoViewOptions/block}} dictionary member of <var>options</var>.
1165
1166
1. Set <var>inline</var> to the {{ScrollIntoViewOptions/inline}} dictionary member of <var>options</var>.
1166
-
1. Set <var>notIfViewed</var> to the {{ScrollIntoViewOptions/notIfViewed}} dictionary member of <var>options</var>.
1167
+
1. Set <var>scrollMode</var> to the {{ScrollIntoViewOptions/scroll}} dictionary member of <var>options</var>.
1167
1168
1. Otherwise, if <var>arg</var> is false, then set <var>block</var> to "<code>end</code>".
1168
1169
1. If the element does not have any associated <a>layout box</a>, then return.
1169
1170
1. <a lt='scroll an element into view'>Scroll the element into view</a>
1170
-
with <var>behavior</var>, <var>block</var>, <var>inline</var>, and <var>notIfViewed</var>.
1171
+
with <var>behavior</var>, <var>block</var>, <var>inline</var>, and <var>scrollMode</var>.
1171
1172
1. Optionally perform some other action that brings the element to the user's attention.
1172
1173
1173
1174
The <dfn method for=Element lt="scroll(options)|scroll(x, y)">scroll()</dfn> method must run these steps:
@@ -1320,7 +1321,7 @@ The <dfn attribute for=Element>clientHeight</dfn> attribute must run these steps
1320
1321
1321
1322
To <dfn>scroll an element into view</dfn><var>element</var>,
1322
1323
with a scroll behavior <var>behavior</var>,
1323
-
a boolean indicating to not scroll if the element is already in view <var>notIfViewed</var>,
1324
+
a mode indicating whether to scroll if the element is already in view <var>scrollMode</var>,
1324
1325
optionally a block flow direction position <var>block</var> (undefined if not given),
1325
1326
and optionally an inline base direction position <var>inline</var> (undefined if not given),
1326
1327
means to run these steps for each ancestor element or <a>viewport</a> that establishes
@@ -1334,7 +1335,7 @@ a <a>scrolling box</a> <var>scrolling box</var>, in order of innermost to outerm
1334
1335
1. Let <var>scrolling box edge D</var> be the <a>ending edge</a> in the <a>inline base direction</a> of <var>scrolling box</var>, and let <var>element edge D</var> be <var>element bounding border box</var>'s edge on the same physical side as that of <var>scrolling box edge D</var>.
1335
1336
1. Let <var>element width</var> be the distance between <var>element edge C</var> and <var>element edge D</var>.
1336
1337
1. Let <var>scrolling box width</var> be the distance between <var>scrolling box edge C</var> and <var>scrolling box edge D</var>.
1337
-
1. If <var>notIfViewed</var> is true, and <var>element</var> is entirely in view already, then return.
1338
+
1. If <var>scrollMode</var> is "<code>if-needed</code>", and <var>element</var> is entirely in view already, then return.
0 commit comments