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
<li><p>Optionally perform some other action that brings the element to the user's attention.
1084
1084
</ol>
1085
1085
1086
-
<p>The <dfnid="dom-element-scrolltop" title="dom-Element-scrollTop"><code>scrollTop</code></dfn> attribute must return the result of running these steps:</p>
1086
+
<p>The <dfnid="dom-element-scrolltop" title="dom-Element-scrollTop"><code>scrollTop</code></dfn> attribute, on getting, must return the result of running these steps:</p>
1087
1087
<ol>
1088
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> or the
1089
-
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
1090
-
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a> return zero and terminate these steps.</li>
1088
+
<li><p>If the 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
1089
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return zero and terminate these steps.</li>
1091
1090
<li><p>If the element is the root element return the value of
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>,
1094
-
the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return the value of
1093
+
the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, and the element does not have
1094
+
an associated <ahref="#scrolling-box">scrolling box</a>, return the value of
<li><p>If the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, and the <codetitle="">y</code> dictionary member is not present, abort these steps.
1103
1104
<li><p>If the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, let <var>y</var> be the value of the <codetitle="">y</code> dictionary member.
1104
1105
Otherwise, let <var>y</var> be the given value.</li>
1105
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the
1106
-
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
1107
-
<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 <ahref="#scrolling-box">scrolling box</a>, or the element has no
1108
-
overflow, terminate these steps.</li>
1106
+
<li><p>If the 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
1107
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, terminate these steps.</li>
1109
1108
<li><p>If the element is the root element invoke
1110
1109
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with <codetitle="dom-Window-scrollX"><ahref="#dom-window-scrollx">scrollX</a></code> as first
1111
1110
argument and <var>y</var> as second, and, if the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, the given value as the third argument.</li>
1112
1111
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>,
1113
1112
the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, and the element
1114
-
does not have any vertical overflow, invoke
1113
+
does not have an associated <ahref="#scrolling-box">scrolling box</a>, invoke
1115
1114
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
1116
1115
<codetitle="dom-Window-scrollX"><ahref="#dom-window-scrollx">scrollX</a></code> as first
1117
-
argument and <var>y</var> as second, and, if the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, the given value as the third argument.</li>
1116
+
argument and <var>y</var> as second, and, if the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, the given value as the third argument, and
1117
+
terminate these steps.</li>
1118
+
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the element has no associated <ahref="#scrolling-box">scrolling box</a>, or the element has no
1119
+
overflow, terminate these steps.</li>
1118
1120
<li><p><ahref="#scroll-an-element" title="scroll an element">Scroll the element</a> to
1119
1121
<codetitle="dom-Element-scrollLeft"><ahref="#dom-element-scrollleft">scrollLeft</a></code>,<var>y</var>, with the scroll behavior being the value of the <codetitle="">behavior</code> dictionary
1120
1122
member if the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, or <codetitle="">auto</code> otherwise.
1121
1123
</ol>
1122
1124
1123
-
<p>The <dfnid="dom-element-scrollleft" title="dom-Element-scrollLeft"><code>scrollLeft</code></dfn> attribute must return the result of running these steps:</p>
1125
+
<p>The <dfnid="dom-element-scrollleft" title="dom-Element-scrollLeft"><code>scrollLeft</code></dfn> attribute, on getting, must return the result of running these steps:</p>
1124
1126
<ol>
1125
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> or the
1126
-
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
1127
-
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a> return zero and terminate these steps.</li>
1127
+
<li><p>If the 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
1128
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return zero and terminate these steps.</li>
1128
1129
<li><p>If the element is the root element return the value of
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>,
1131
-
the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, return the value of
1132
+
the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, and the element does not have
1133
+
an associated <ahref="#scrolling-box">scrolling box</a>, return the value of
<li><p>If the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, and the <codetitle="">x</code> dictionary member is not present, abort these steps.
1140
1143
<li><p>If the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, let <var>x</var> be the value of the <codetitle="">x</code> dictionary member.
1141
1144
Otherwise, let <var>x</var> be the given value.</li>
1142
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the
1143
-
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
1144
-
<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 <ahref="#scrolling-box">scrolling box</a>, or the element has no
1145
-
overflow, terminate these steps.</li>
1145
+
<li><p>If the 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
1146
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, terminate these steps.</li>
1146
1147
<li><p>If the element is the root element invoke
1147
1148
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
1148
1149
<var>x</var> as first argument and <codetitle="dom-Window-scrollY"><ahref="#dom-window-scrolly">scrollY</a></code> as second, and, if the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code>
1149
1150
object, the given value as the third argument.</li>
1150
1151
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>,
1151
1152
the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a>, and the element
1152
-
does not have any vertical overflow, invoke
1153
+
does not have an associated <ahref="#scrolling-box">scrolling box</a>, invoke
1153
1154
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
1154
1155
<var>x</var> as first argument and
1155
1156
<codetitle="dom-Window-scrollY"><ahref="#dom-window-scrolly">scrollY</a></code> as second, and, if the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, the given value as the third
1156
-
argument.</li>
1157
+
argument, and terminate these steps.</li>
1158
+
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the element has no associated <ahref="#scrolling-box">scrolling box</a>, or the element has no
1159
+
overflow, terminate these steps.</li>
1157
1160
<li><p><ahref="#scroll-an-element" title="Scroll an element">Scroll the element</a> to
1158
1161
<var>x</var>,<codetitle="dom-Element-scrollTop"><ahref="#dom-element-scrolltop">scrollTop</a></code>, with the scroll behavior being the value of the <codetitle="">behavior</code> dictionary
1159
1162
member if the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, or <codetitle="">auto</code> otherwise.
1160
1163
</ol>
1161
1164
1162
1165
<p>The <dfnid="dom-element-scrollwidth" title="dom-Element-scrollWidth"><code>scrollWidth</code></dfn> attribute must return the result of running these steps:</p>
1163
1166
<ol>
1164
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> return
1165
-
zero and terminate these steps.</li>
1166
1167
<li><p>Let <var>viewport width</var> be the width of the <ahref="#viewport">viewport</a> excluding the width of the scroll bar, if any, or zero if there is no
1167
1168
<ahref="#viewport">viewport</a>.
1168
1169
<li><p>If the element is the root element and the
1169
1170
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is not in
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>, the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in
1174
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a> and the element has no associated <ahref="#scrolling-box">scrolling box</a>,
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> return
1177
+
zero and terminate these steps.</li>
1176
1178
<li><p>Return the width of the element's <ahref="#scrolling-area">scrolling area</a>.</li>
1177
1179
</ol>
1178
1180
1179
1181
<p>The <dfnid="dom-element-scrollheight" title="dom-Element-scrollHeight"><code>scrollHeight</code></dfn> attribute must return the result of running these steps:</p>
1180
1182
<ol>
1181
-
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a> return
1182
-
zero and terminate these steps.</li>
1183
1183
<li><p>Let <var>viewport height</var> be the height of the <ahref="#viewport">viewport</a> excluding the height of the scroll bar, if any, or zero if there is no
1184
1184
<ahref="#viewport">viewport</a>.
1185
1185
<li><p>If the element is the root element and the
1186
1186
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is not in
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>, the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is in
1190
+
<aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#concept-document-quirks" title="concept-document-quirks">quirks mode</a> and the element has no associated <ahref="#scrolling-box">scrolling box</a>,
0 commit comments