diff --git a/index.html b/index.html index e01bbcdf..7d92a662 100644 --- a/index.html +++ b/index.html @@ -4044,25 +4044,23 @@

Set Window Rect

  1. Let width be the result of getting a property named "width" - from parameters, else let it be null. + from parameters.

  2. Let height be the result of getting a property named "height" - from parameters, else let it be null. + from parameters.

  3. Let x be the result of getting a property - named "x" from parameters, - else let it be null. + named "x" from parameters.

  4. Let y be the result of getting a property - named "y" from parameters, - else let it be null. + named "y" from parameters. -

  5. If width or height is neither null +

  6. If width or height is neither undefined nor a Number from 0 to 231 − 1, return error with error code invalid argument. -

  7. If x or y is neither null +

  8. 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 @@

    Set Window Rect

    session's current top-level browsing context for any reason, return error with error code unsupported operation. +

    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. +

  9. If session's current top-level browsing context is no longer open, return error with error code no such window. @@ -4082,21 +4085,25 @@

    Set Window Rect

  10. Restore the window. -

  11. If width and height are not null: +

  12. Let window be the operating system window containing + session's current top-level browsing context + +

  13. If the implementation is able to set the dimensions + of window:

      -
    1. 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 +

    2. 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. -

    3. 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 +

    4. 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:

      -
    1. 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. - -

      +
    2. 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. + +

    3. 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.