Skip to content

Commit eea6d6b

Browse files
andreasttshs96c
authored andcommitted
set window rect: allow x/y fields to be signed integers
It should be allowed to set a window's position to negative x/y coordinates. Fixes: #804
1 parent ed6abe5 commit eea6d6b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

webdriver-spec.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3799,17 +3799,20 @@ <h3>Set Window Rect</h3>
37993799
from the <var>parameters</var> argument, else let it be <a><code>null</code></a>.
38003800

38013801
<li><p>Let <var>x</var> be the result of <a>getting a property</a>
3802-
named <code>y</code> from the <var>parameters</var> argument,
3802+
named <code>x</code> from the <var>parameters</var> argument,
38033803
else let it be <a><code>null</code></a>.
38043804

38053805
<li><p>Let <var>y</var> be the result of <a>getting a property</a>
3806-
named <code>x</code> from the <var>parameters</var> argument,
3806+
named <code>y</code> from the <var>parameters</var> argument,
38073807
else let it be <a><code>null</code></a>.
38083808

3809-
<li><p>If any of <code>width</code> or <code>height</code> or <code>x</code>
3810-
or <code>y</code> is neither <code>null</code> nor an integer between 0 and
3811-
2<sup>64</sup> – 1 (inclusive), return <a>error</a> with <a>error code</a>
3812-
<a>invalid argument</a>.
3809+
<li><p>If <var>width</var> or <var>height</var> is neither <a><code>null</code></a>
3810+
nor an integer from 0 to 2<sup>64</sup> − 1,
3811+
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
3812+
3813+
<li><p>If <var>x</var> or <var>y</var> is neither <a><code>null</code></a>
3814+
nor an integer from −(2<sup>63</sup>) to 2<sup>63</sup> − 1,
3815+
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
38133816

38143817
<li><p><a>Fully exit fullscreen</a>.
38153818

0 commit comments

Comments
 (0)