diff --git a/index.html b/index.html index e01bbcdf..7d92a662 100644 --- a/index.html +++ b/index.html @@ -4044,25 +4044,23 @@
Let width be the result of
getting a property named "width
"
- from parameters, else let it be null
.
+ from parameters.
Let height be the result of
getting a property named "height
"
- from parameters, else let it be null
.
+ from parameters.
Let x be the result of getting a property
- named "x
" from parameters,
- else let it be null
.
+ named "x
" from parameters.
Let y be the result of getting a property
- named "y
" from parameters,
- else let it be null
.
+ named "y
" from parameters.
-
If width or height is neither null
+
If width or height is neither undefined nor a Number from 0 to 231 − 1, return error with error code invalid argument. -
If x or y is neither null
+
If x or y is neither undefined nor a Number from −(231) to 231 − 1, return error with error code invalid argument. @@ -4071,6 +4069,11 @@
In case the Set Window Rect command is + partially supported (i.e. some combinations of arguments are + supported but not others), the implmentation is expected to continue + with the remaining steps. +
If session's current top-level browsing context is no longer open, return error with error code no such window. @@ -4082,21 +4085,25 @@
If width and height are not null
:
+
Let window be the operating system window containing + session's current top-level browsing context + +
If the implementation is able to set the dimensions + of window:
Set the width, in CSS pixels, - of the operating system window containing - session's current top-level browsing context, - including any browser chrome and externally drawn window decorations +
If width is not undefined, set the width, + in CSS pixels, of window, including + any browser chrome and externally drawn window decorations, to a value that is as close as possible to width. -
Set the height, in CSS pixels, - of the operating system window containing - session's current top-level browsing context, - including any browser chrome and externally drawn window decorations +
If height is not undefined, set the height, + in CSS pixels, of window, including + any browser chrome and externally drawn window decorations, to a value that is as close as possible to height. +
If x and y are not null
:
+
If the implementation is able to set the position of window:
Run the implementation-specific steps to set the position of - the operating system level window - containing session's current top-level browsing - context to the position given by the x - and y coordinates. - - +
If x is not undefined, run specific + steps set the x-coordinate of the left edge of window + to a value that is as close as possible to x. + +
If y is not undefined, run specific + steps set the y-coordinate of the top edge of window to + a value that is as close as possible to y.
Return success with data set to the WindowRect object for the session's current top-level browsing context.