Skip to content

Commit c014dd3

Browse files
committed
no more empty or union
1 parent 6454e0e commit c014dd3

2 files changed

Lines changed: 9 additions & 28 deletions

File tree

cssom-view/Overview.html

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,21 +1013,10 @@ <h2 id=the-rangeview-interface><span class=secno>8. </span>The <code
10131013
are zero.
10141014

10151015
<li>
1016-
<p>Otherwise, return a union of the boxes in <var>list</var>, excluding
1017-
boxes that are empty, as a single <code><a
1018-
href="#clientrect">ClientRect</a></code> object. If all boxes are empty
1019-
let the <code title=clientrect-top><a
1020-
href="#clientrect-top">top</a></code> attribute of the new <code><a
1021-
href="#clientrect">ClientRect</a></code> object be the value of the
1022-
<code title=clientrect-top><a href="#clientrect-top">top</a></code>
1023-
attribute of the first border box in the list returned. Do likewise for
1024-
<code title=clientrect-left><a href="#clientrect-left">left</a></code>
1025-
and then let <code title=clientrect-bottom><a
1026-
href="#clientrect-bottom">bottom</a></code> be equal to <code
1027-
title=clientrect-bottom><a href="#clientrect-bottom">top</a></code> and
1028-
<code title=clientrect-right><a
1029-
href="#clientrect-right">right</a></code> to <code
1030-
title=clientrect-left><a href="#clientrect-left">left</a></code>.
1016+
<p>Otherwise, return a <code><a href="#clientrect">ClientRect</a></code>
1017+
object describing the smallest rectangle that includes the first
1018+
rectangle in <var>list</var> and all of the remaining rectangles of
1019+
which the height or width is not zero.
10311020
</ol>
10321021

10331022
<h2 id=the-mouseeventview-interface><span class=secno>9. </span>The <code

cssom-view/Overview.src.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -848,19 +848,11 @@ <h2 id="the-rangeview-interface">The <code title="">RangeView</code> Interface</
848848
<code title="clientrect-right">right</code>,
849849
<code title="clientrect-bottom">bottom</code> and
850850
<code title="clientrect-left">left</code> members are zero.</p></li>
851-
852-
<li><p>Otherwise, return a union of the boxes in <var>list</var>,
853-
excluding boxes that are empty, as a single <code>ClientRect</code>
854-
object. If all boxes are empty let the
855-
<code title="clientrect-top">top</code> attribute of the new
856-
<code>ClientRect</code> object be the value of the
857-
<code title="clientrect-top">top</code> attribute of the first border
858-
box in the list returned. Do likewise for
859-
<code title="clientrect-left">left</code> and then let
860-
<code title="clientrect-bottom">bottom</code> be equal to
861-
<code title="clientrect-bottom">top</code> and
862-
<code title="clientrect-right">right</code> to
863-
<code title="clientrect-left">left</code>.</p></li>
851+
852+
<li><p>Otherwise, return a <code>ClientRect</code> object describing the
853+
smallest rectangle that includes the first rectangle in <var>list</var>
854+
and all of the remaining rectangles of which the height or width is not
855+
zero.</p></li>
864856
</ol>
865857

866858

0 commit comments

Comments
 (0)