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
@@ -1119,23 +1121,27 @@ The <dfn method for=Element>getClientRects()</dfn> method, when invoked, must re
1119
1121
1120
1122
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.
1121
1123
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.
1122
-
1. Return a sequence containing static{{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:
1124
+
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:
1123
1125
1124
1126
* Apply the <a>transforms</a> that apply to the element and its ancestors.
1125
1127
* 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.
1126
1128
* Replace each <a>anonymous block box</a> with its child box(es) and repeat this until no anonymous block boxes are left in the final list.
1127
1129
1130
+
Note: The {{DOMRect}} objects returned by {{Element/getClientRects()}} are not <a spec=html>live</a>.
1131
+
1128
1132
The <dfn method for=Element caniuse=getboundingclientrect>getBoundingClientRect()</dfn> method, when invoked, must return the result of the following
1129
1133
algorithm:
1130
1134
1131
1135
1. Let <var>list</var> be the result of invoking {{Element/getClientRects()}} on the same element this method was invoked on.
1132
-
1. If the <var>list</var> is empty return a static {{DOMRect}} object
1136
+
1. If the <var>list</var> is empty return a {{DOMRect}} object
1133
1137
whose {{DOMRect/x}}, {{DOMRect/y}}, {{DOMRect/width}} and {{DOMRect/height}} members are zero.
1134
1138
1. If all rectangles in <var>list</var> have zero width or height, return the first rectangle in
1135
1139
<var>list</var>.
1136
-
1. Otherwise, return a static {{DOMRect}} object describing the smallest rectangle that includes all
1140
+
1. Otherwise, return a {{DOMRect}} object describing the smallest rectangle that includes all
1137
1141
of the rectangles in <var>list</var> of which the height or width is not zero.
1138
1142
1143
+
Note: The {{DOMRect}} object returned by {{Element/getBoundingClientRect()}} is not <a spec=html>live</a>.
1144
+
1139
1145
<div class='example'>
1140
1146
The following snippet gets the dimensions of the first <code>div</code> element in a document:
1141
1147
@@ -1476,8 +1482,6 @@ first <a>CSS layout box</a> associated with the element, relative to the <a>init
1476
1482
Extensions to the {{Range}} Interface {#extensions-to-the-range-interface}
The objects the methods described below return must be static.
1480
-
1481
1485
<pre class=idl>
1482
1486
partial interface Range {
1483
1487
sequence<DOMRect> getClientRects();
@@ -1488,7 +1492,7 @@ partial interface Range {
1488
1492
The <dfn method for=Range>getClientRects()</dfn> method, when invoked, must return an empty
1489
1493
sequence if the range is not in the document and
1490
1494
otherwise a sequence object containing
1491
-
static {{DOMRect}} objects in content order that matches the
1495
+
{{DOMRect}} objects in content order that matches the
1492
1496
following constraints:
1493
1497
1494
1498
* 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.
@@ -1502,16 +1506,20 @@ following constraints:
1502
1506
for the purpose of computing the bounds of the relevant {{DOMRect}}. [[!CSS-TEXT-3]] The
1503
1507
<a>transforms</a> that apply to the ancestors are applied.
1504
1508
1509
+
Note: The {{DOMRect}} objects returned by {{Range/getClientRects()}} are not <a spec=html>live</a>.
1510
+
1505
1511
The <dfn method for=Range>getBoundingClientRect()</dfn> method, when invoked, must return the result of the following
1506
1512
algorithm:
1507
1513
1508
1514
1. Let <var>list</var> be the result of invoking {{Range/getClientRects()}} on the same range this method was invoked on.
1509
-
1. If <var>list</var> is empty return a static {{DOMRect}} object whose {{DOMRect/x}}, {{DOMRect/y}}, {{DOMRect/width}} and {{DOMRect/height}} members are zero.
1515
+
1. If <var>list</var> is empty return a {{DOMRect}} object whose {{DOMRect/x}}, {{DOMRect/y}}, {{DOMRect/width}} and {{DOMRect/height}} members are zero.
1510
1516
1. If all rectangles in <var>list</var> have zero width or height, return the first rectangle in
1511
1517
<var>list</var>.
1512
-
1. Otherwise, return a static {{DOMRect}} object describing the smallest rectangle that includes all
1518
+
1. Otherwise, return a {{DOMRect}} object describing the smallest rectangle that includes all
1513
1519
of the rectangles in <var>list</var> of which the height or width is not zero.
1514
1520
1521
+
Note: The {{DOMRect}} object returned by {{Range/getBoundingClientRect()}} is not <a spec=html>live</a>.
1522
+
1515
1523
Extensions to the {{MouseEvent}} Interface {#extensions-to-the-mouseevent-interface}
0 commit comments