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
<p>A scrolling box of a <ahref="#viewport">viewport</a> or element has two <dfnid="overflow-directions">overflow directions</dfn>, depending on the <ahref="#viewport">viewport</a>'s or element's
253
253
<ahref="#block-flow-direction">block flow direction</a> and <ahref="#inline-base-direction">inline base direction</a>, as follows:
254
254
255
-
<dl>
255
+
<dlclass="switch">
256
256
<dt>If the <ahref="#block-flow-direction">block flow direction</a> is top-to-bottom and the <ahref="#inline-base-direction">inline base direction</a> is left-to-right
257
257
<dt>If the <ahref="#block-flow-direction">block flow direction</a> is left-to-right and the <ahref="#inline-base-direction">inline base direction</a> is left-to-right
<p>The <dfnid="dom-element-scrollintoview" title="dom-Element-scrollIntoView"><code>scrollIntoView(<var>top</var>, <var>options</var>)</code></dfn> method must run these steps:</p>
884
884
<ol>
885
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> terminate these steps.</li>
885
+
<li><p>If the element does not have any associated <ahref="#layout-box">layout box</a> terminate these steps.</li>
886
886
<li><p><ahref="#scroll-an-element-into-view" title="scroll an element into view">Scroll the element into view</a> with the
887
887
<i>align to top flag</i> set if <var>top</var> is true, and the scroll behavior being the value of the <codetitle="">behavior</code>
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the
913
913
element is the root element and the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in
914
-
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or the element has no overflow, terminate these
915
-
steps.</li>
914
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or the element has no associated scrolling box, or the element has no overflow,
915
+
terminate these steps.</li>
916
916
<li><p>If the element is the root element invoke
917
917
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with zero as first
918
918
argument and <var>y</var> as second, and, if the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, the given value as the third argument.</li>
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the
951
951
element is the root element and the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in
952
-
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or the element has no overflow, terminate these
953
-
steps.</li>
952
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, or the element has no associated scrolling box, or the element has no overflow,
953
+
terminate these steps.</li>
954
954
<li><p>If the element is the root element invoke
955
955
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
956
956
<var>x</var> as first argument and zero as second, and, if the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, the given value as the third
<p>To <dfnid="scroll-an-element-into-view">scroll an element into view</dfn><var>element</var>, optionally with an <i>align to top flag</i> set, and optionally with a scroll behavior
1049
1049
<var>behavior</var> (which is <codetitle="">auto</code> if omitted), means to run these steps for each ancestor element or <ahref="#viewport">viewport</a> that establishes
1050
-
a scrolling box <var>box</var>, in order of innermost to outermost scrolling box:</p>
1050
+
a scrolling box <var>scrolling box</var>, in order of innermost to outermost scrolling box:</p>
1051
1051
1052
1052
<ol>
1053
1053
<li><p>If the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> associated
<ahref="#viewport">viewport</a> associated with <var>box</var>, terminate these
1057
1057
steps.</li>
1058
1058
1059
-
<li><p>Let <var>box edge A</var> be the <ahref="#beginning-edges" title="beginning edges">beginning edge</a> in the <ahref="#block-flow-direction">block flow direction</a>of <var>box</var>, and let
1060
-
<var>element edge A</var> be <var>element</var>'s border box edge on the same physical side as that of <var>box edge A</var>.
1059
+
<li><p>Let <var>element bounding border box</var> be the box that the return value of invoking
<li><p>Let <var>box edge B</var> be the <ahref="#ending-edges" title="ending edges">ending edge</a> in the <ahref="#block-flow-direction">block flow direction</a> of <var>box</var>, and let
1063
-
<var>element edge B</var> be <var>element</var>'s border box edge on the same physical side as that of <var>box edge B</var>.
1062
+
<li><p>Let <var>scrolling box edge A</var> be the <ahref="#beginning-edges" title="beginning edges">beginning edge</a> in the <ahref="#block-flow-direction">block flow direction</a> of
1063
+
<var>scrolling box</var>, and let <var>element edge A</var> be <var>element bounding border box</var>'s edge on the same physical side as that of
1064
+
<var>scrolling box edge A</var>.
1065
+
1066
+
<li><p>Let <var>scrolling box edge B</var> be the <ahref="#ending-edges" title="ending edges">ending edge</a> in the <ahref="#block-flow-direction">block flow direction</a> of <var>scrolling
1067
+
box</var>, and let <var>element edge B</var> be <var>element bounding border box</var>'s edge on the same physical side as that of <var>scrolling box edge
1068
+
B</var>.
1064
1069
1065
-
<li><p>Let <var>box edge C</var> be the <ahref="#beginning-edges" title="beginning edges">beginning edge</a> in the <ahref="#inline-base-direction">inline base direction</a> of <var>box</var>, and
1066
-
let <var>element edge C</var> be <var>element</var>'s border box edge on the same physical side as that of <var>box edge C</var>.
1070
+
<li><p>Let <var>scrolling box edge C</var> be the <ahref="#beginning-edges" title="beginning edges">beginning edge</a> in the <ahref="#inline-base-direction">inline base direction</a> of
1071
+
<var>scrolling box</var>, and let <var>element edge C</var> be <var>element bounding border box</var>'s edge on the same physical side as that of
1072
+
<var>scrolling box edge C</var>.
1067
1073
1068
-
<li><p>Let <var>box edge D</var> be the <ahref="#ending-edges" title="ending edges">ending edge</a> in the <ahref="#inline-base-direction">inline base direction</a> of <var>box</var>, and let
1069
-
<var>element edge D</var> be <var>element</var>'s border box edge on the same physical side as that of <var>box edge D</var>.
1074
+
<li><p>Let <var>scrolling box edge D</var> be the <ahref="#ending-edges" title="ending edges">ending edge</a> in the <ahref="#inline-base-direction">inline base direction</a> of <var>scrolling
1075
+
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>box edge D</var>.
1070
1076
1071
1077
<li><p>Let <var>element width</var> be the distance between <var>element edge C</var> and <var>element edge D</var>.
1072
1078
1073
-
<li><p>Let <var>box width</var> be the distance between <var>box edge C</var> and <var>box edge D</var>.
1079
+
<li><p>Let <var>scrolling box width</var> be the distance between <var>scrolling box edge C</var> and <var>scrolling box edge D</var>.
1074
1080
1075
-
<li><p>Let <var>position</var> be the scroll position <var>box</var> would have by following these steps:
1081
+
<li><p>Let <var>position</var> be the scroll position <var>scrolling box</var> would have by following these steps:
1076
1082
1077
1083
<ol>
1078
-
<li><p>If the <i>align to top flag</i> is set align <var>element edge A</var> with <var>box edge A</var>.</li>
1084
+
<li><p>If the <i>align to top flag</i> is set align <var>element edge A</var> with <var>scrolling box edge A</var>.</li>
1079
1085
1080
-
<li><p>Otherwise, the <i>align to top flag</i> is not set; align <var>element edge B</var> with <var>box edge B</var>.</li>
1086
+
<li><p>Otherwise, the <i>align to top flag</i> is not set; align <var>element edge B</var> with <var>scrolling box edge B</var>.</li>
1081
1087
1082
1088
<li>
1083
1089
<dlclass="switch">
1084
-
<dt>If <var>element edge C</var> and <var>element edge D</var> are both outside <var>box edge C</var> and <var>box edge D</var>
1090
+
<dt>If <var>element edge C</var> and <var>element edge D</var> are both outside <var>scrolling box edge C</var> and <var>scrolling box edge D</var>
1085
1091
<dd><p>Do nothing.
1086
1092
1087
-
<dt>If <var>element edge C</var> is outside <var>box edge C</var> and <var>element width</var> is less than <var>box width</var>
1088
-
<dt>If <var>element edge D</var> is outside <var>box edge D</var> and <var>element width</var> is greater than <var>box width</var>
1089
-
<dd><p>Align <var>element edge C</var> with <var>box edge C</var>.
1093
+
<dt>If <var>element edge C</var> is outside <var>scrolling box edge C</var> and <var>element width</var> is less than <var>scrolling box width</var>
1094
+
<dt>If <var>element edge D</var> is outside <var>scrolling box edge D</var> and <var>element width</var> is greater than <var>scrolling box width</var>
1095
+
<dd><p>Align <var>element edge C</var> with <var>scrolling box edge C</var>.
1090
1096
1091
-
<dt>If <var>element edge C</var> is outside <var>box edge C</var> and <var>element width</var> is greater than <var>box width</var>
1092
-
<dt>If <var>element edge D</var> is outside <var>box edge D</var> and <var>element width</var> is less than <var>box width</var>
1093
-
<dd><p>Align <var>element edge D</var> with <var>box edge D</var>.
1097
+
<dt>If <var>element edge C</var> is outside <var>scrolling box edge C</var> and <var>element width</var> is greater than <var>scrolling box width</var>
1098
+
<dt>If <var>element edge D</var> is outside <var>scrolling box edge D</var> and <var>element width</var> is less than <var>scrolling box width</var>
1099
+
<dd><p>Align <var>element edge D</var> with <var>scrolling box edge D</var>.
1094
1100
</dl>
1095
1101
</ol>
1096
1102
1097
-
<li><p>If <var>position</var> is the same as <var>box</var>'s current scroll position, and <var>box</var> does not have an ongoing
1103
+
<li><p>If <var>position</var> is the same as <var>scrolling box</var>'s current scroll position, and <var>scrolling box</var> does not have an ongoing
1098
1104
<ahref="#concept-smooth-scroll" title="concept-smooth-scroll">smooth scroll</a>, abort these steps.
1099
1105
1100
1106
<li>
1101
1107
<dlclass="switch">
1102
-
<dt>If <var>box</var> is associated with an element</dt>
1108
+
<dt>If <var>scrolling box</var> is associated with an element</dt>
1103
1109
<dd>
1104
1110
<p>Let <var>associated element</var> be the element.
<dt>If <var>box</var> is associated with a <ahref="#viewport">viewport</a></dt>
1118
+
<dt>If <var>scrolling box</var> is associated with a <ahref="#viewport">viewport</a></dt>
1113
1119
<dd>
1114
1120
<p>Let <var>associated element</var> be the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code>'s root element, if there is one, or null otherwise.
Copy file name to clipboardExpand all lines: cssom-view/Overview.src.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -873,8 +873,8 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
873
873
let <var>y</var> be the given value.</p></li>
874
874
<li><p>If the element does not have any associated <span>CSS layout box</span>, the
875
875
element is the root element and the <codedata-anolis-spec=dom>Document</code> is in
876
-
<spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, or the element has no overflow, terminate these
877
-
steps.</p></li>
876
+
<spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, or the element has no associated scrolling box, or the element has no overflow,
877
+
terminate these steps.</p></li>
878
878
<li><p>If the element is the root element invoke
879
879
<codetitle=dom-Window-scroll>scroll()</code> with zero as first
880
880
argument and <var>y</var> as second, and, if the given value is a <code>ScrollOptions</code> object, the given value as the third argument.</p></li>
@@ -911,8 +911,8 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
911
911
let <var>x</var> be the given value.</p></li>
912
912
<li><p>If the element does not have any associated <span>CSS layout box</span>, the
913
913
element is the root element and the <codedata-anolis-spec=dom>Document</code> is in
914
-
<spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, or the element has no overflow, terminate these
915
-
steps.</p></li>
914
+
<spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, or the element has no associated scrolling box, or the element has no overflow,
915
+
terminate these steps.</p></li>
916
916
<li><p>If the element is the root element invoke
917
917
<codetitle=dom-Window-scroll>scroll()</code> with
918
918
<var>x</var> as first argument and zero as second, and, if the given value is a <code>ScrollOptions</code> object, the given value as the third
0 commit comments