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><ahref="#the-features-argument-to-the-open()-method"><spanclass="secno">5.1 </span>The <var>features</var> argument to the <codetitle="">open()</code> method</a></li>
<pclass="note">Accessing <codetitle="dom-Window-screen"><ahref="#dom-window-screen">screen</a></code> through a <codeclass="external" data-anolis-spec="html"><ahref="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#windowproxy">WindowProxy</a></code> object might yield different
544
545
results when the <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> is navigated.</p>
545
546
546
-
<p>The <dfnid="dom-window-moveto" title="dom-Window-moveTo">moveTo</dfn> method must follow these steps:
547
+
<p>The <dfnid="dom-window-moveto" title="dom-Window-moveTo">moveTo(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
<h4id="the-features-argument-to-the-open()-method"><spanclass="secno">5.1 </span>The <var>features</var> argument to the <codetitle="">open()</code> method</h4>
706
+
707
+
<p>HTML defines the <codeclass="external" data-anolis-spec="html" title="dom-open"><ahref="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#dom-open">open()</a></code> method but has no defined effect for the third argument, <var>features</var>.
708
+
<ahref="#refsHTML">[HTML]</a>
709
+
710
+
<p>This specification defines the effect of the <var>features</var> argument for user agents that do not opt to ignore it, as follows:
711
+
712
+
<ol>
713
+
<li><p>If the method does not result in a new <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#auxiliary-browsing-context">auxiliary browsing context</a> being created, terminate these steps.
714
+
<li><p>Let <var>target</var> be the new <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#auxiliary-browsing-context">auxiliary browsing context</a>.
715
+
<li><p>Let <var>tokens</var> be the result of <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#split-a-string-on-commas" title="split a string on commas">splitting <var>features</var> on commas</a>.
716
+
<li><p>Let <var>parsed features</var> be a new empty dictionary.
717
+
<li><p><i>Token loop</i>: For each token <var>token</var> in <var>tokens</var>, follow these substeps:
718
+
<ol>
719
+
<li><p>Let <var>input</var> be <var>token</var>.
720
+
<li><p>Let <var>position</var> point at the first character of <var>input</var>.
<li><p><aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#collect-a-sequence-of-characters">Collect a sequence of characters</a> that are not <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#space-character" title="space character">space
723
+
characters</a> nor "<codetitle="">=</code>" (U+003D). Let <var>name</var> be the collected characters.
724
+
<li><p>If <var>name</var> is in <var>parsed features</var> or if <var>name</var> is not a <ahref="#supported-open()-feature-name">supported <codetitle="">open()</code> feature name</a>,
<li><p>If the character at <var>position</var> is not "<codetitle="">=</code>" (U+003D), continue <i>token loop</i>.
728
+
<li><p>Advance <var>position</var> by one.
729
+
<li><p>If <var>position</var> is past the end of <var>input</var>, continue <i>token loop</i>.
730
+
<li><p><aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#collect-a-sequence-of-characters">Collect a sequence of characters</a> that are any characters. Let <var>raw value</var> be the collected characters.
731
+
<li><p>Let <var>value</var> be the result of invoking the <aclass="external" data-anolis-spec="html" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#rules-for-parsing-integers">rules for parsing integers</a> on <var>raw value</var>.
732
+
<li><p>If <var>value</var> is an error, continue <i>token loop</i>.
733
+
<li><p>Set <var>name</var> in <var>parsed features</var> to <var>value</var>.
734
+
</ol>
735
+
<li><p>If <codetitle="dom-open-features-left"><ahref="#dom-open-features-left">left</a></code> is present in <var>parsed features</var>, follow these substeps:
736
+
<ol>
737
+
<li><p>Let <var>x</var> be the value of <codetitle="dom-open-features-left"><ahref="#dom-open-features-left">left</a></code>.
738
+
<li><p>Optionally, clamp <var>x</var> in a user-agent-defined manner so that the window does not move outside the available space.
739
+
<li><p>Optionally, move <var>target</var>'s window such that the window's left edge is at the horizontal coordinate <var>x</var> relative to the left edge of
740
+
the output device, measured in CSS pixels of <var>target</var>. The positive axis is rightward.
741
+
</ol>
742
+
<li><p>If <codetitle="dom-open-features-top"><ahref="#dom-open-features-top">top</a></code> is present in <var>parsed features</var>, follow these substeps:
743
+
<ol>
744
+
<li><p>Let <var>y</var> be the value of <codetitle="dom-open-features-top"><ahref="#dom-open-features-top">top</a></code>.
745
+
<li><p>Optionally, clamp <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
746
+
<li><p>Optionally, move <var>target</var>'s window such that the window's top edge is at the vertical coordinate <var>y</var> relative to the top edge of
747
+
the output device, measured in CSS pixels of <var>target</var>. The positive axis is downward.
748
+
</ol>
749
+
<li><p>If <codetitle="dom-open-features-width"><ahref="#dom-open-features-width">width</a></code> is present in <var>parsed features</var>, follow these substeps:
750
+
<ol>
751
+
<li><p>Let <var>x</var> be the value of <codetitle="dom-open-features-width"><ahref="#dom-open-features-width">width</a></code>.
752
+
<li><p>Optionally, clamp <var>x</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
753
+
<li><p>Optionally, size <var>target</var>'s window by moving its right edge such that the distance between the left and right edges of the viewport are
754
+
<var>x</var> CSS pixels of <var>target</var>.
755
+
<li><p>Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
756
+
</ol>
757
+
<li><p>If <codetitle="dom-open-features-height"><ahref="#dom-open-features-height">height</a></code> is present in <var>parsed features</var>, follow these substeps:
758
+
<ol>
759
+
<li><p>Let <var>y</var> be the value of <codetitle="dom-open-features-height"><ahref="#dom-open-features-height">height</a></code>.
760
+
<li><p>Optionally, clamp <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
761
+
<li><p>Optionally, size <var>target</var>'s window by moving its bottom edge such that the distance between the top and bottom edges of the viewport are
762
+
<var>x</var> CSS pixels of <var>target</var>.
763
+
<li><p>Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
764
+
</ol>
765
+
</ol>
766
+
767
+
<p>A <dfnid="supported-open()-feature-name">supported <codetitle="">open()</code> feature name</dfn> is one of the following:
<p>A <code><ahref="#mediaquerylist">MediaQueryList</a></code> object has an associated media query list set on creation and an associated
707
784
<dfnid="list-of-media-query-list-listeners">list of media query list listeners</dfn>, which is initially empty.</p>
@@ -743,7 +820,7 @@ <h3 id="the-mediaquerylist-interface"><span class="secno">5.1 </span>The <code t
743
820
<p>When the <dfnid="dom-mediaquerylist-removelistener" title="dom-MediaQueryList-removeListener"><code>removeListener(<var>listener</var>)</code></dfn> method is invoked
744
821
<var>listener</var> must be removed from the <ahref="#list-of-media-query-list-listeners">list of media query list listeners</a>.</p>
0 commit comments