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
@@ -1140,20 +1140,17 @@ The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>
1140
1140
1. Let <var>options</var> be null.
1141
1141
1. If <var>arg</var> is a {{ScrollIntoViewOptions}} dictionary, set <var>options</var> to <var>arg</var>. Otherwise:
1142
1142
1. <a lt="converted to an IDL value">Convert</a><var>options</var> to a {{ScrollIntoViewOptions}} dictionary. [[!WEBIDL]]
1143
-
1. If <var>arg</var> is true, set the {{ScrollIntoViewOptions/block}} dictionary member of <var>options</var> to "<code>start</code>", and set the {{ScrollIntoViewOptions/inline}} dictionary member of <var>options</var> to "<code>nearest</code>".
1144
-
1. If <var>arg</var> is false, let the {{ScrollIntoViewOptions/block}} dictionary member of <var>options</var> to "<code>end</code>", and set the {{ScrollIntoViewOptions/inline}} dictionary member of <var>options</var> to "<code>nearest</code>".
1143
+
1. If <var>arg</var> is false, let the {{ScrollIntoViewOptions/block}} dictionary member of <var>options</var> to "<code>end</code>".
1145
1144
1. If the element does not have any associated <a>layout box</a> terminate these steps.
1146
1145
1. <a lt='scroll an element into view'>Scroll the element into view</a>
1147
1146
with the options <var>options</var>.
1148
1147
1. Optionally perform some other action that brings the element to the user's attention.
1149
1148
1150
-
<p class=note highlight=javascript>For historical reasons, passing in <code>true</code> or
1151
-
<code>undefined</code> to {{Element/scrollIntoView()}} is equivalent to
1152
-
<code>{ block: "start", inline: "nearest" }</code>, and passing in
1149
+
<p class=note highlight=javascript>Passing in <code>true</code>, <code>undefined</code>, or an empty
1150
+
dictionary <code>{}</code> to {{Element/scrollIntoView()}} is equivalent to
1151
+
<code>{ block: "start", inline: "nearest" }</code>. Passing in
1153
1152
<code>false</code> is equivalent to
1154
-
<code>{ block: "end", inline: "nearest" }</code>. Since centering is a
1155
-
common case, passing in an empty dictionary <code>{}</code> is equivalent to
0 commit comments