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
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -433,7 +433,7 @@ partial interface Window {
433
433
// browsing context
434
434
void moveTo(long x, long y);
435
435
void moveBy(long x, long y);
436
-
void resizeTo(long x, long y);
436
+
void resizeTo(long width, long height);
437
437
void resizeBy(long x, long y);
438
438
439
439
// viewport
@@ -500,14 +500,14 @@ The <dfn method for=Window>moveBy(<var>x</var>, <var>y</var>)</dfn> method must
500
500
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.
501
501
502
502
503
-
The <dfn method for=Window>resizeTo(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
503
+
The <dfn method for=Window>resizeTo(<var>width</var>, <var>height</var>)</dfn> method must follow these steps:
504
504
505
505
1. Optionally, terminate these steps.
506
506
1. Let <var>target</var> be the <a>browsing context</a> of the <a>context object</a>.
507
507
1. Let <var>source</var> be the <a>responsible browsing context</a> of the <a>incumbent settings object</a>.
508
508
1. If <var>source</var> is not <a>allowed to resize and move</a><var>target</var>, terminate these steps.
509
-
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.
510
-
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>x</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>y</var><a lt=px value>CSS pixels</a> of <var>target</var>.
509
+
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.
510
+
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>.
511
511
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
512
512
513
513
The <dfn method for=Window>resizeBy(<var>x</var>, <var>y</var>)</dfn> method must follow these steps:
@@ -1749,7 +1749,11 @@ This section documents some of the changes between publications of this specific
1749
1749
generally not listed.
1750
1750
1751
1751
1752
-
<h3 id='changes-from-2013-12-17' class=no-num>Changes From 17 December 2013</h3>
1752
+
<h3 id='changes-from-2020-01-31' class=no-num>Changes From 31 January 2020</h3>
1753
+
* Added Simon Fraser as editor
1754
+
* Renamed the arguments to {{Window/resizeTo()}} to be <var>width</var> and <var>height</var> (<a href="https://github.com/w3c/csswg-drafts/issues/4727">4727</a>)
1755
+
1756
+
<h3 id='changes-from-2013-12-17' class=no-num>Changes From 17 December 2013 To 31 January 2020</h3>
1753
1757
1754
1758
* The {{Element/scrollIntoView()}} method on {{Element}} was changed and extended.
1755
1759
* The {{Element/scrollTop}} and {{Element/scrollLeft}} IDL attributes on {{Element}} changed to no
0 commit comments