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>When setting the <codetitle="dom-Element-scrollTop"><ahref="#dom-element-scrolltop">scrollTop</a></code> attribute these steps must be run:</p>
921
925
<ol>
922
-
<li><p>If the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, and the <codetitle="">y</code> dictionary member is not present, abort these steps.
923
-
<li><p>If the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, let <var>y</var> be the value of the <codetitle="">y</code> dictionary member. Otherwise,
924
-
let <var>y</var> be the given value.</li>
926
+
<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.
927
+
<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.
928
+
Otherwise, let <var>y</var> be the given value.</li>
925
929
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the
926
930
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
927
931
<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,
928
932
terminate these steps.</li>
929
933
<li><p>If the element is the root element invoke
930
934
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with zero as first
931
-
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>
935
+
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>
932
936
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>,
933
937
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
934
938
does not have any vertical overflow, invoke
935
939
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
936
940
<codetitle="dom-Window-scrollX"><ahref="#dom-window-scrollx">scrollX</a></code> as first
937
-
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>
941
+
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>
938
942
<li><p><ahref="#scroll-an-element" title="scroll an element">Scroll the element</a> to
939
943
<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
940
-
member if the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, or <codetitle="">auto</code> otherwise.
944
+
member if the given value is a <code><ahref="#scrolloptionsvertical">ScrollOptionsVertical</a></code> object, or <codetitle="">auto</code> otherwise.
941
945
</ol>
942
946
943
947
<p>The <dfnid="dom-element-scrollleft" title="dom-Element-scrollLeft"><code>scrollLeft</code></dfn> attribute must return the result of running these steps:</p>
<p>When setting the <codetitle="dom-Element-scrollLeft"><ahref="#dom-element-scrollleft">scrollLeft</a></code> attribute these steps must be run:</p>
959
963
<ol>
960
-
<li><p>If the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, and the <codetitle="">x</code> dictionary member is not present, abort these steps.
961
-
<li><p>If the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, let <var>x</var> be the value of the <codetitle="">x</code> dictionary member. Otherwise,
962
-
let <var>x</var> be the given value.</li>
964
+
<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.
965
+
<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.
966
+
Otherwise, let <var>x</var> be the given value.</li>
963
967
<li><p>If the element does not have any associated <ahref="#css-layout-box">CSS layout box</a>, the
964
968
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
965
969
<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,
966
970
terminate these steps.</li>
967
971
<li><p>If the element is the root element invoke
968
972
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
969
-
<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
973
+
<var>x</var> as first argument and zero as second, and, if the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, the given value as the third
970
974
argument.</li>
971
975
<li><p>If the element is <ahref="#the-html-body-element">the HTML <codetitle="">body</code> element</a>,
972
976
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
973
977
does not have any vertical overflow, invoke
974
978
<codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> with
975
979
<var>x</var> as first argument and
976
-
<codetitle="dom-Window-scrollY"><ahref="#dom-window-scrolly">scrollY</a></code> as second, and, if the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, the given value as the third
980
+
<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
977
981
argument.</li>
978
982
<li><p><ahref="#scroll-an-element" title="Scroll an element">Scroll the element</a> to
979
983
<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
980
-
member if the given value is a <code><ahref="#scrolloptions">ScrollOptions</a></code> object, or <codetitle="">auto</code> otherwise.
984
+
member if the given value is a <code><ahref="#scrolloptionshorizontal">ScrollOptionsHorizontal</a></code> object, or <codetitle="">auto</code> otherwise.
981
985
</ol>
982
986
983
987
<p>The <dfnid="dom-element-scrollwidth" title="dom-Element-scrollWidth"><code>scrollWidth</code></dfn> attribute must return the result of running these steps:</p>
@@ -881,25 +885,25 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
881
885
</ol>
882
886
<p>When setting the <codetitle=dom-Element-scrollTop>scrollTop</code> attribute these steps must be run:</p>
883
887
<ol>
884
-
<li><p>If the given value is a <code>ScrollOptions</code> object, and the <codetitle>y</code> dictionary member is not present, abort these steps.
885
-
<li><p>If the given value is a <code>ScrollOptions</code> object, let <var>y</var> be the value of the <codetitle>y</code> dictionary member. Otherwise,
886
-
let <var>y</var> be the given value.</p></li>
888
+
<li><p>If the given value is a <code>ScrollOptionsVertical</code> object, and the <codetitle>y</code> dictionary member is not present, abort these steps.
889
+
<li><p>If the given value is a <code>ScrollOptionsVertical</code> object, let <var>y</var> be the value of the <codetitle>y</code> dictionary member.
890
+
Otherwise, let <var>y</var> be the given value.</p></li>
887
891
<li><p>If the element does not have any associated <span>CSS layout box</span>, the
888
892
element is the root element and the <codedata-anolis-spec=dom>Document</code> is in
889
893
<spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, or the element has no associated scrolling box, or the element has no overflow,
890
894
terminate these steps.</p></li>
891
895
<li><p>If the element is the root element invoke
892
896
<codetitle=dom-Window-scroll>scroll()</code> with zero as first
893
-
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>
897
+
argument and <var>y</var> as second, and, if the given value is a <code>ScrollOptionsVertical</code> object, the given value as the third argument.</p></li>
894
898
<li><p>If the element is <span>the HTML <codetitle>body</code> element</span>,
895
899
the <codedata-anolis-spec=dom>Document</code> is in <spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, and the element
896
900
does not have any vertical overflow, invoke
897
901
<codetitle=dom-Window-scroll>scroll()</code> with
898
902
<codetitle=dom-Window-scrollX>scrollX</code> as first
899
-
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>
903
+
argument and <var>y</var> as second, and, if the given value is a <code>ScrollOptionsVertical</code> object, the given value as the third argument.</p></li>
900
904
<li><p><spantitle='scroll an element'>Scroll the element</span> to
901
905
<codetitle=dom-Element-scrollLeft>scrollLeft</code>,<var>y</var>, with the scroll behavior being the value of the <codetitle>behavior</code> dictionary
902
-
member if the given value is a <code>ScrollOptions</code> object, or <codetitle>auto</code> otherwise.
906
+
member if the given value is a <code>ScrollOptionsVertical</code> object, or <codetitle>auto</code> otherwise.
903
907
</ol>
904
908
905
909
<p>The <dfntitle=dom-Element-scrollLeft><code>scrollLeft</code></dfn> attribute must return the result of running these steps:</p>
@@ -919,27 +923,27 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
919
923
</ol>
920
924
<p>When setting the <codetitle=dom-Element-scrollLeft>scrollLeft</code> attribute these steps must be run:</p>
921
925
<ol>
922
-
<li><p>If the given value is a <code>ScrollOptions</code> object, and the <codetitle>x</code> dictionary member is not present, abort these steps.
923
-
<li><p>If the given value is a <code>ScrollOptions</code> object, let <var>x</var> be the value of the <codetitle>x</code> dictionary member. Otherwise,
924
-
let <var>x</var> be the given value.</p></li>
926
+
<li><p>If the given value is a <code>ScrollOptionsHorizontal</code> object, and the <codetitle>x</code> dictionary member is not present, abort these steps.
927
+
<li><p>If the given value is a <code>ScrollOptionsHorizontal</code> object, let <var>x</var> be the value of the <codetitle>x</code> dictionary member.
928
+
Otherwise, let <var>x</var> be the given value.</p></li>
925
929
<li><p>If the element does not have any associated <span>CSS layout box</span>, the
926
930
element is the root element and the <codedata-anolis-spec=dom>Document</code> is in
927
931
<spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, or the element has no associated scrolling box, or the element has no overflow,
928
932
terminate these steps.</p></li>
929
933
<li><p>If the element is the root element invoke
930
934
<codetitle=dom-Window-scroll>scroll()</code> with
931
-
<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
935
+
<var>x</var> as first argument and zero as second, and, if the given value is a <code>ScrollOptionsHorizontal</code> object, the given value as the third
932
936
argument.</p></li>
933
937
<li><p>If the element is <span>the HTML <codetitle>body</code> element</span>,
934
938
the <codedata-anolis-spec=dom>Document</code> is in <spandata-anolis-spec=domtitle=concept-document-quirks>quirks mode</span>, and the element
935
939
does not have any vertical overflow, invoke
936
940
<codetitle='dom-Window-scroll'>scroll()</code> with
937
941
<var>x</var> as first argument and
938
-
<codetitle=dom-Window-scrollY>scrollY</code> as second, and, if the given value is a <code>ScrollOptions</code> object, the given value as the third
942
+
<codetitle=dom-Window-scrollY>scrollY</code> as second, and, if the given value is a <code>ScrollOptionsHorizontal</code> object, the given value as the third
939
943
argument.</p></li>
940
944
<li><p><spantitle='Scroll an element'>Scroll the element</span> to
941
945
<var>x</var>,<codetitle=dom-Element-scrollTop>scrollTop</code>, with the scroll behavior being the value of the <codetitle>behavior</code> dictionary
942
-
member if the given value is a <code>ScrollOptions</code> object, or <codetitle>auto</code> otherwise.
946
+
member if the given value is a <code>ScrollOptionsHorizontal</code> object, or <codetitle>auto</code> otherwise.
943
947
</ol>
944
948
945
949
<p>The <dfntitle=dom-Element-scrollWidth><code>scrollWidth</code></dfn> attribute must return the result of running these steps:</p>
0 commit comments