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:
1019
1019
1020
-
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.
1021
-
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.
1022
-
1. Return a {{DOMRectList}} object containing a list of{{DOMRect}} objects in content order describing the bounding border boxes (including those with a height or width of zero) with the following constraints:
1020
+
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.
1021
+
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.
1022
+
1. Return a sequence containing {{DOMRect}} objects in content order describing the bounding border boxes (including those with a height or width of zero) with the following constraints:
1023
1023
1024
1024
* Apply the <a>transforms</a> that apply to the element and its ancestors.
1025
1025
* 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.
@@ -1364,14 +1364,14 @@ The objects the methods described below return must be static.
1364
1364
1365
1365
<pre class=idl>
1366
1366
partial interface Range {
1367
-
DOMRectList getClientRects();
1367
+
sequence<DOMRect> getClientRects();
1368
1368
DOMRect getBoundingClientRect();
1369
1369
};
1370
1370
</pre>
1371
1371
1372
1372
The <dfn method for=Range>getClientRects()</dfn> method, when invoked, must return an empty
1373
-
{{DOMRectList}} object if the range is not in the document and
1374
-
otherwise a {{DOMRectList}} object containing a list of
1373
+
sequence if the range is not in the document and
1374
+
otherwise a sequence object containing
1375
1375
{{DOMRect}} objects in content order that matches the
0 commit comments