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 the <dfnid="dom-window-scroll" title="dom-Window-scroll"><code>scroll(<var>x</var>, <var>y</var>, <var>options</var>)</code></dfn> method is invoked these
687
+
<p>When the <dfnid="dom-window-scroll" title="dom-Window-scroll"><code>scroll()</code></dfn> method is invoked these
675
688
steps must be run:</p>
676
689
<ol>
677
-
<li><p><ahref="#normalize-non-finite-values">Normalize non-finite values</a> for <var>x</var> and <var>y</var>.
690
+
<li><p>If invoked with one argument, follow these substeps:
691
+
<ol>
692
+
<li><p>Let <var>options</var> be the argument.
693
+
<li><p>Let <var>x</var> be the value of the <codetitle="">left</code> dictionary member of <var>options</var>, if present, or the <ahref="#viewport">viewport</a>'s current scroll position on the x axis otherwise.
694
+
<li><p>Let <var>y</var> be the value of the <codetitle="">top</code> dictionary member of <var>options</var>, if present, or the <ahref="#viewport">viewport</a>'s current scroll position on the y axis otherwise.
695
+
</ol>
696
+
<li><p>If invoked with two arguments, follow these substeps:
697
+
<ol>
698
+
<li><p>Let <var>options</var> be null <ahref="#converted-to-an-idl-value" title="converted to an IDL value">converted</a> to a <code><ahref="#scrolltooptions">ScrollToOptions</a></code> dictionary. <ahref="#refsWEBIDL">[WEBIDL]</a>
699
+
<li><p>Let <var>x</var> and <var>y</var> be the arguments, respectively.
700
+
<li><p><ahref="#normalize-non-finite-values">Normalize non-finite values</a> for <var>x</var> and <var>y</var>.
701
+
</ol>
678
702
<li><p>If there is no <ahref="#viewport">viewport</a>, abort these steps.
679
703
<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.
680
704
<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.
value of the <codetitle="">behavior</code> dictionary member of <var>options</var>.
714
738
</ol>
715
739
716
-
<p>When the <dfnid="dom-window-scrollto" title="dom-Window-scrollTo"><code>scrollTo(<var>x</var>, <var>y</var>, <var>options</var>)</code></dfn> method is invoked, the
740
+
<p>When the <dfnid="dom-window-scrollto" title="dom-Window-scrollTo"><code>scrollTo()</code></dfn> method is invoked, the
717
741
user agent must act as if the <codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> method was invoked with the same arguments.</p>
718
742
719
-
<p>When the <dfnid="dom-window-scrollby" title="dom-Window-scrollBy"><code>scrollBy(<var>x</var>, <var>y</var>, <var>options</var>)</code></dfn> method is invoked, the
743
+
<p>When the <dfnid="dom-window-scrollby" title="dom-Window-scrollBy"><code>scrollBy()</code></dfn> method is invoked, the
720
744
user agent must act as if the <codetitle="dom-Window-scroll"><ahref="#dom-window-scroll">scroll()</a></code> method was invoked with
721
745
<var>x</var> plus <codetitle="dom-Window-scrollX"><ahref="#dom-window-scrollx">scrollX</a></code>
<p>When the <dfntitle=dom-Window-scroll><code>scroll(<var>x</var>, <var>y</var>, <var>options</var>)</code></dfn> method is invoked these
643
+
<p>When the <dfntitle=dom-Window-scroll><code>scroll()</code></dfn> method is invoked these
631
644
steps must be run:</p>
632
645
<ol>
633
-
<li><p><span>Normalize non-finite values</span> for <var>x</var> and <var>y</var>.
646
+
<li><p>If invoked with one argument, follow these substeps:
647
+
<ol>
648
+
<li><p>Let <var>options</var> be the argument.
649
+
<li><p>Let <var>x</var> be the value of the <codetitle>left</code> dictionary member of <var>options</var>, if present, or the <span>viewport</span>'s current scroll position on the x axis otherwise.
650
+
<li><p>Let <var>y</var> be the value of the <codetitle>top</code> dictionary member of <var>options</var>, if present, or the <span>viewport</span>'s current scroll position on the y axis otherwise.
651
+
</ol>
652
+
<li><p>If invoked with two arguments, follow these substeps:
653
+
<ol>
654
+
<li><p>Let <var>options</var> be null <spantitle="converted to an IDL value">converted</span> to a <code>ScrollToOptions</code> dictionary. <spandata-anolis-ref>WEBIDL</span>
655
+
<li><p>Let <var>x</var> and <var>y</var> be the arguments, respectively.
656
+
<li><p><span>Normalize non-finite values</span> for <var>x</var> and <var>y</var>.
657
+
</ol>
634
658
<li><p>If there is no <span>viewport</span>, abort these steps.
635
659
<li><p>Let <var>viewport width</var> be the width of the <span>viewport</span> excluding the width of the scroll bar, if any.
636
660
<li><p>Let <var>viewport height</var> be the height of the <span>viewport</span> excluding the height of the scroll bar, if any.
@@ -669,10 +693,10 @@ <h2>Extensions to the <code title>Window</code> Interface</h2>
669
693
value of the <codetitle>behavior</code> dictionary member of <var>options</var>.
670
694
</ol>
671
695
672
-
<p>When the <dfntitle=dom-Window-scrollTo><code>scrollTo(<var>x</var>, <var>y</var>, <var>options</var>)</code></dfn> method is invoked, the
696
+
<p>When the <dfntitle=dom-Window-scrollTo><code>scrollTo()</code></dfn> method is invoked, the
673
697
user agent must act as if the <codetitle=dom-Window-scroll>scroll()</code> method was invoked with the same arguments.</p>
674
698
675
-
<p>When the <dfntitle=dom-Window-scrollBy><code>scrollBy(<var>x</var>, <var>y</var>, <var>options</var>)</code></dfn> method is invoked, the
699
+
<p>When the <dfntitle=dom-Window-scrollBy><code>scrollBy()</code></dfn> method is invoked, the
676
700
user agent must act as if the <codetitle=dom-Window-scroll>scroll()</code> method was invoked with
677
701
<var>x</var> plus <codetitle='dom-Window-scrollX'>scrollX</code>
0 commit comments