Skip to content

Commit 66d8aea

Browse files
committed
[cssom-view-1] Change the arguments to the Window.resizeTo() function to be ‘width’ and ‘height’
Issue w3c#4727
1 parent ee19737 commit 66d8aea

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

cssom-view-1/Overview.bs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ partial interface Window {
433433
// browsing context
434434
void moveTo(long x, long y);
435435
void moveBy(long x, long y);
436-
void resizeTo(long x, long y);
436+
void resizeTo(long width, long height);
437437
void resizeBy(long x, long y);
438438

439439
// viewport
@@ -500,14 +500,14 @@ The <dfn method for=Window>moveBy(<var>x</var>, <var>y</var>)</dfn> method must
500500
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.
501501

502502

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:
504504

505505
1. Optionally, terminate these steps.
506506
1. Let <var>target</var> be the <a>browsing context</a> of the <a>context object</a>.
507507
1. Let <var>source</var> be the <a>responsible browsing context</a> of the <a>incumbent settings object</a>.
508508
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>.
511511
1. Optionally, move <var>target</var>'s window in a user-agent-defined manner so that it does not grow outside the available space.
512512

513513
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
17491749
generally not listed.
17501750

17511751

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>
17531757

17541758
* The {{Element/scrollIntoView()}} method on {{Element}} was changed and extended.
17551759
* The {{Element/scrollTop}} and {{Element/scrollLeft}} IDL attributes on {{Element}} changed to no

0 commit comments

Comments
 (0)