Skip to content

Commit ed6abe5

Browse files
andreasttshs96c
authored andcommitted
set window rect: correct indentation
No functional changes.
1 parent 0304755 commit ed6abe5

File tree

1 file changed

+51
-48
lines changed

1 file changed

+51
-48
lines changed

webdriver-spec.html

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3813,65 +3813,68 @@ <h3>Set Window Rect</h3>
38133813

38143814
<li><p><a>Fully exit fullscreen</a>.
38153815

3816-
<li><p>If the <a>top-level browsing context</a>’s <a>document <code>hidden</code> attribute</a>
3817-
is <code>true</code> run the implementation specific steps that will
3818-
set the <a>top-level browsing context</a> <a>document <code>hidden</code> attribute</a>
3819-
to <code>false</code>.
3816+
<li><p>If the <a>top-level browsing context</a>’s
3817+
<a>document <code>hidden</code> attribute</a> is <code>true</code>,
3818+
run the implementation specific steps
3819+
that will set the <a>top-level browsing context</a>
3820+
<a>document <code>hidden</code> attribute</a> to <code>false</code>.
38203821

38213822
<li><p>If <var>width</var> and <var>height</var> are not <a><code>null</code></a>:
3822-
<ol>
3823-
<li><p>Set the width, in <a>CSS reference pixels</a>,
3824-
of the operating system window containing
3825-
the <a>current top-level browsing context</a>,
3826-
including any browser chrome and externally drawn window decorations
3827-
to a value that is as close as possible to <var>width</var>.
38283823

3829-
<li><p>Set the height, in <a>CSS reference pixels</a>,
3830-
of the operating system window containing
3831-
the <a>current top-level browsing context</a>,
3832-
including any browser chrome and externally drawn window decorations
3833-
to a value that is as close as possible to <var>height</var>.
3824+
<ol>
3825+
<li><p>Set the width, in <a>CSS reference pixels</a>,
3826+
of the operating system window containing
3827+
the <a>current top-level browsing context</a>,
3828+
including any browser chrome and externally drawn window decorations
3829+
to a value that is as close as possible to <var>width</var>.
3830+
3831+
<li><p>Set the height, in <a>CSS reference pixels</a>,
3832+
of the operating system window containing
3833+
the <a>current top-level browsing context</a>,
3834+
including any browser chrome and externally drawn window decorations
3835+
to a value that is as close as possible to <var>height</var>.
3836+
3837+
<aside class=note>
3838+
<p>The specification does not guarantee
3839+
that the resulting window size will exactly match that which was requested.
3840+
In particular the implementation is expected to clamp values
3841+
that are larger than the physical screen dimensions,
3842+
or smaller than the minimum window size.
3843+
3844+
<p>Particular implementations may have other limitations
3845+
such as not being able to resize in single-pixel increments.
3846+
</aside>
3847+
</ol>
38343848

3835-
<aside class=note>
3836-
<p>The specification does not guarantee
3837-
that the resulting window size will exactly match that which was requested.
3838-
In particular the implementation is expected to clamp values
3839-
that are larger than the physical screen dimensions,
3840-
or smaller than the minimum window size.
3841-
3842-
<p>Particular implementations may have other limitations
3843-
such as not being able to resize in single-pixel increments.
3844-
</aside>
3845-
</ol>
38463849
<li><p>If <var>x</var> and <var>y</var> are not <a><code>null</code></a>:
3850+
38473851
<ol>
3848-
<li><p>Run the implementation-specific steps
3849-
to set the position of the operating system level window
3850-
containing the <a>current top-level browsing context</a>
3851-
to the position given by the <var>x</var> and <var>y</var> coordinates.
3852-
3853-
<aside class=note>
3854-
<p>Note that this step is similar
3855-
to calling the <a>moveTo(x, y)</a> method
3856-
on the <a><code>WindowProxy</code></a> object
3857-
associated with the <a>current top-level browsing context</a>,
3858-
but without the <a href=https://developer.mozilla.org/en-US/docs/Web/API/Window/moveTo>security restrictions</a> that you
3859-
3860-
<ol type=a>
3861-
<li>cannot move a window or tab
3862-
that was not created by <code>window.open</code>.
3863-
<li>cannot move a window or tab
3864-
when it is in a window with more than one tab.
3865-
</ol>
3866-
</aside>
3852+
<li><p>Run the implementation-specific steps
3853+
to set the position of the operating system level window
3854+
containing the <a>current top-level browsing context</a>
3855+
to the position given by the <var>x</var> and <var>y</var> coordinates.
3856+
3857+
<aside class=note>
3858+
<p>Note that this step is similar
3859+
to calling the <a>moveTo(x, y)</a> method
3860+
on the <a><code>WindowProxy</code></a> object
3861+
associated with the <a>current top-level browsing context</a>,
3862+
but without the <a href=https://developer.mozilla.org/en-US/docs/Web/API/Window/moveTo>security restrictions</a> that you
3863+
3864+
<ol type=a>
3865+
<li>cannot move a window or tab
3866+
that was not created by <code>window.open</code>.
3867+
3868+
<li>cannot move a window or tab
3869+
when it is in a window with more than one tab.
3870+
</ol>
3871+
</aside>
38673872
</ol>
38683873

38693874
<li><p>Return <a>success</a>
38703875
with the <a data-lt="json serialization of window rect">JSON serialization</a>
3871-
of the <a>current top-level browsing context</a>’s
3872-
<a>window rect</a>.
3876+
of the <a>current top-level browsing context</a>’s <a>window rect</a>.
38733877
</ol>
3874-
38753878
</section> <!-- /Set Window Rect -->
38763879

38773880
<section>

0 commit comments

Comments
 (0)