You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <dfn method for=Element>getClientRects()</dfn> method, when invoked, must return the result of the following algorithm:
1105
1105
1106
-
1. If the element on which it was invoked does not have an associated <a>layout box</a> return an empty sequence and stop this algorithm.
1107
-
1. If the element has an associated <a>SVG layout box</a> return a sequence containing a single {{DOMRect}} object that describes the bounding box of the element as defined by the SVG specification, applying the <a>transforms</a> that apply to the element and its ancestors.
1108
-
1. Return a sequence containing {{DOMRect}} objects in content order, one for each <a spec=css-break>box fragment</a>, describing its border area (including those with a height or width of zero) with the following constraints:
1106
+
1. If the element on which it was invoked does not have an associated <a>layout box</a> return an empty {{DOMRectList}} object and stop this algorithm.
1107
+
1. If the element has an associated <a>SVG layout box</a> return a {{DOMRectList}} object containing a single {{DOMRect}} object that describes the bounding box of the element as defined by the SVG specification, applying the <a>transforms</a> that apply to the element and its ancestors.
1108
+
1. Return a {{DOMRectList}} object containing {{DOMRect}} objects in content order, one for each <a spec=css-break>box fragment</a>, describing its border area (including those with a height or width of zero) with the following constraints:
1109
1109
1110
1110
* Apply the <a>transforms</a> that apply to the element and its ancestors.
1111
1111
* If the element on which the method was invoked has a computed value for the 'display' property of ''table'' or ''inline-table'' include both the table box and the caption box, if any, but not the anonymous container box.
@@ -1464,16 +1464,14 @@ first <a>CSS layout box</a> associated with the element, relative to the <a>init
1464
1464
1465
1465
<pre class=idl>
1466
1466
partial interface Range {
1467
-
sequence<DOMRect> getClientRects();
1467
+
DOMRectList getClientRects();
1468
1468
[NewObject] DOMRect getBoundingClientRect();
1469
1469
};
1470
1470
</pre>
1471
1471
1472
1472
The <dfn method for=Range>getClientRects()</dfn> method, when invoked, must return an empty
1473
-
sequence if the range is not in the document and
1474
-
otherwise a sequence object containing
1475
-
{{DOMRect}} objects in content order that matches the
1476
-
following constraints:
1473
+
{{DOMRectList}} object if the range is not in the document and otherwise a {{DOMRectList}} object
1474
+
containing a list of {{DOMRect}} objects in content order that matches the following constraints:
1477
1475
1478
1476
* For each element selected by the range, whose parent is not selected by the range, include the border areas returned by invoking {{Element/getClientRects()}} on the element.
1479
1477
* For each {{Text}} node selected or partially selected by the range (including when the
0 commit comments