Skip to content

Commit b23bac6

Browse files
authored
[cssom-view] Uplift some of the document-pip changes. (#13763)
Closes #13707
1 parent bf4c38c commit b23bac6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cssom-view-1/Overview.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ The <dfn method for=Window>moveTo(<var>x</var>, <var>y</var>)</dfn> method must
663663
1. Optionally, return.
664664
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
665665
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.
666667
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.
667668
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.
668669

@@ -671,6 +672,7 @@ The <dfn method for=Window>moveBy(<var>x</var>, <var>y</var>)</dfn> method must
671672
1. Optionally, return.
672673
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
673674
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.
674676
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.
675677
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.
676678

@@ -680,6 +682,9 @@ The <dfn method for=Window>resizeTo(<var>width</var>, <var>height</var>)</dfn> m
680682
1. Optionally, return.
681683
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
682684
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=].
683688
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.
684689
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>.
685690
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
@@ -693,6 +698,9 @@ The <dfn method for=Window>resizeBy(<var>x</var>, <var>y</var>)</dfn> method mus
693698
1. Optionally, return.
694699
1. Let <var>target</var> be [=this=]'s [=relevant global object=]'s [=Window/browsing context=].
695700
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=].
696704
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.
697705
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.
698706
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

Comments
 (0)