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
Copy file name to clipboardExpand all lines: cssom-view-1/Overview.bs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -663,6 +663,7 @@ The <dfn method for=Window>moveTo(<var>x</var>, <var>y</var>)</dfn> method must
663
663
1. Optionally, return.
664
664
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
665
665
1. If |target| is not an [=auxiliary browsing context=] that was created by a script (as opposed to by an action of the user), then return.
666
+
1. If |target|'s [=top-level traversable=]'s [=Is Document Picture-in-Picture=] boolean is <code>true</code>, then return.
666
667
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
667
668
1. Move <var>target</var>’s window such that the window’s top left corner is at coordinates (<var>x</var>, <var>y</var>) relative to the top left corner of the output device, measured in <a lt=px value>CSS pixels</a> of <var>target</var>. The positive axes are rightward and downward.
668
669
@@ -671,6 +672,7 @@ The <dfn method for=Window>moveBy(<var>x</var>, <var>y</var>)</dfn> method must
671
672
1. Optionally, return.
672
673
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
673
674
1. If |target| is not an [=auxiliary browsing context=] that was created by a script (as opposed to by an action of the user), then return.
675
+
1. If |target|'s [=top-level traversable=]'s [=Is Document Picture-in-Picture=] boolean is <code>true</code>, then return.
674
676
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not move outside the available space.
675
677
1. Move <var>target</var>'s window <var>x</var><a lt=px value>CSS pixels</a> of <var>target</var> rightward and <var>y</var><a lt=px value>CSS pixels</a> of <var>target</var> downward.
676
678
@@ -680,6 +682,9 @@ The <dfn method for=Window>resizeTo(<var>width</var>, <var>height</var>)</dfn> m
680
682
1. Optionally, return.
681
683
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
682
684
1. If |target| is not an [=auxiliary browsing context=] that was created by a script (as opposed to by an action of the user), then return.
685
+
1. If |target|'s [=top-level traversable=]'s [=Is Document Picture-in-Picture=] boolean is <code>true</code>, then:
686
+
1. If [=this=]'s [=relevant global object=] does not have [=transient activation=], throw a "{{NotAllowedError}}" {{DOMException}}.
687
+
1. [=Consume user activation=] given [=this=]'s [=relevant global object=].
683
688
1. Optionally, clamp <var>width</var> and <var>height</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
684
689
1. Resize <var>target</var>'s window by moving its right and bottom edges such that the distance between the left and right edges of the viewport are <var>width</var><a lt=px value>CSS pixels</a> of <var>target</var> and the distance between the top and bottom edges of the viewport are <var>height</var><a lt=px value>CSS pixels</a> of <var>target</var>.
685
690
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
695
700
1. If |target| is not an [=auxiliary browsing context=] that was created by a script (as opposed to by an action of the user), then return.
701
+
1. If |target|'s [=top-level traversable=]'s [=Is Document Picture-in-Picture=] boolean is <code>true</code>, then:
702
+
1. If [=this=]'s [=relevant global object=] does not have [=transient activation=], throw a "{{NotAllowedError}}" {{DOMException}}.
703
+
1. [=Consume user activation=] given [=this=]'s [=relevant global object=].
696
704
1. Optionally, clamp <var>x</var> and <var>y</var> in a user-agent-defined manner so that the window does not get too small or bigger than the available space.
697
705
1. Resize <var>target</var>'s window by moving its right edge <var>x</var><a lt=px value>CSS pixels</a> of <var>target</var> rightward and its bottom edge <var>y</var><a lt=px value>CSS pixels</a> of <var>target</var> downward.
698
706
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
0 commit comments