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
Copy file name to clipboardExpand all lines: cssom-view-1/Overview.bs
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1299,8 +1299,8 @@ The <dfn method for=Element caniuse=scrollintoview>scrollIntoView(<var>arg</var>
1299
1299
1. Set <var>behavior</var> to the {{ScrollOptions/behavior}} dictionary member of <var>options</var>.
1300
1300
1. Set <var>block</var> to the {{ScrollIntoViewOptions/block}} dictionary member of <var>options</var>.
1301
1301
1. Set <var>inline</var> to the {{ScrollIntoViewOptions/inline}} dictionary member of <var>options</var>.
1302
-
1. If the {{ScrollIntoViewOptions/container}} dictionary member of <var>options</var>,
1303
-
set <var>container</var> to this element.
1302
+
1. If the {{ScrollIntoViewOptions/container}} dictionary member of <var>options</var> is "<code>nearest</code>",
1303
+
set <var>container</var> to the element.
1304
1304
1. Otherwise, if <var>arg</var> is false, then set <var>block</var> to "<code>end</code>".
1305
1305
1. If the element does not have any associated [=CSS/box=],
1306
1306
or is not available to user-agent features,
@@ -1545,7 +1545,9 @@ means to run these steps:
1545
1545
1. <a for="viewport">Perform a scroll</a> of the <a>viewport</a> to <var>position</var>, with <var>root element</var> as the associated element and <var>behavior</var>
1546
1546
as the scroll behavior.
1547
1547
</dl>
1548
-
1. If <var>container</var> is not null and <var>scrolling box</var> is a [=shadow-including inclusive ancestor=] of <var>container</var>,
1548
+
1. If <var>container</var> is not null and either <var>scrolling box</var>
1549
+
is a [=shadow-including inclusive ancestor=] of <var>container</var> or
1550
+
is a <a>viewport</a> whose <a for="/">document</a> is a [=shadow-including inclusive ancestor=] of <var>container</var>,
0 commit comments