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
@@ -1153,16 +1154,16 @@ The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>
1153
1154
1. Let <var>behavior</var> be "<code>auto</code>".
1154
1155
1. Let <var>block</var> be "<code>start</code>".
1155
1156
1. Let <var>inline</var> be "<code>nearest</code>".
1156
-
1. Let <var>notIfViewed</var> be false.
1157
+
1. Let <var>scrollMode</var> be "<code>always</code>".
1157
1158
1. If <var>arg</var> is a {{ScrollIntoViewOptions}} dictionary, then:
1158
1159
1. Set <var>behavior</var> to the {{ScrollOptions/behavior}} dictionary member of <var>options</var>.
1159
1160
1. Set <var>block</var> to the {{ScrollIntoViewOptions/block}} dictionary member of <var>options</var>.
1160
1161
1. Set <var>inline</var> to the {{ScrollIntoViewOptions/inline}} dictionary member of <var>options</var>.
1161
-
1. Set <var>notIfViewed</var> to the {{ScrollIntoViewOptions/notIfViewed}} dictionary member of <var>options</var>.
1162
+
1. Set <var>scrollMode</var> to the {{ScrollIntoViewOptions/scroll}} dictionary member of <var>options</var>.
1162
1163
1. Otherwise, if <var>arg</var> is false, then set <var>block</var> to "<code>end</code>".
1163
1164
1. If the element does not have any associated <a>layout box</a>, then return.
1164
1165
1. <a lt='scroll an element into view'>Scroll the element into view</a>
1165
-
with <var>behavior</var>, <var>block</var>, <var>inline</var>, and <var>notIfViewed</var>.
1166
+
with <var>behavior</var>, <var>block</var>, <var>inline</var>, and <var>scrollMode</var>.
1166
1167
1. Optionally perform some other action that brings the element to the user's attention.
1167
1168
1168
1169
The <dfn method for=Element lt="scroll(options)|scroll(x, y)">scroll()</dfn> method must run these steps:
@@ -1315,7 +1316,7 @@ The <dfn attribute for=Element>clientHeight</dfn> attribute must run these steps
1315
1316
1316
1317
To <dfn>scroll an element into view</dfn><var>element</var>,
1317
1318
with a scroll behavior <var>behavior</var>,
1318
-
a boolean indicating to not scroll if the element is already in view <var>notIfViewed</var>,
1319
+
a mode indicating whether to scroll if the element is already in view <var>scrollMode</var>,
1319
1320
optionally a block flow direction position <var>block</var> (undefined if not given),
1320
1321
and optionally an inline base direction position <var>inline</var> (undefined if not given),
1321
1322
means to run these steps for each ancestor element or <a>viewport</a> that establishes
@@ -1329,7 +1330,7 @@ a <a>scrolling box</a> <var>scrolling box</var>, in order of innermost to outerm
1329
1330
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>.
1330
1331
1. Let <var>element width</var> be the distance between <var>element edge C</var> and <var>element edge D</var>.
1331
1332
1. Let <var>scrolling box width</var> be the distance between <var>scrolling box edge C</var> and <var>scrolling box edge D</var>.
1332
-
1. If <var>notIfViewed</var> is true, and <var>element</var> is entirely in view already, then return.
1333
+
1. If <var>scrollMode</var> is "<code>if-needed</code>", and <var>element</var> is entirely in view already, then return.
0 commit comments