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
<h3id="the-domrect-and-domrectreadonly-interfaces"><spanclass="secno">11.2 </span>The <codetitle="">DOMRect</code> and <codetitle="">DOMRectReadOnly</code> Interfaces</h3>
1614
1614
1615
-
<p>Objects implementing the <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> interface represent a <dfnid="concept-geometry-rectangle" title="concept-geometry-rectangle">rectangle</dfn>.
1616
-
The type of box is specified by the method or attribute that returns a <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> object. The interfaces are identical
1617
-
except the attributes of <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> are readonly.
1615
+
<p>Objects implementing the <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> interface represent a <dfnid="concept-geometry-rectangle" title="concept-geometry-rectangle">rectangle</dfn>. The type of box is
1616
+
specified by the method or attribute that returns a <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> object.
1618
1617
1619
1618
<p><ahref="#concept-geometry-rectangle" title="concept-geometry-rectangle">Rectangles</a> have the following properties:
<var>width</var> and <ahref="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> set to <var>height</var>.
1674
1664
</ol>
1675
1665
1676
-
<p>The <dfnid="dom-domrect-x" title="dom-DOMRect-x"><code>x</code></dfn> attribute, on getting, it must return the <ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
1677
-
coordinate</a>. On setting, the <ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a> must be set to the new value.</p>
1678
-
1679
-
<p>The <dfnid="dom-domrect-y" title="dom-DOMRect-y"><code>y</code></dfn> attribute, on getting, it must return the <ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
1680
-
coordinate</a>. On setting, the <ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y coordinate</a> must be set to the new value.</p>
1666
+
<p>The <dfnid="dom-domrectreadonly-x" title="dom-DOMRectReadOnly-x"><code>x</code></dfn> attribute, on getting, must return the <ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
1667
+
coordinate</a>. The <dfnid="dom-domrect-x" title="dom-DOMRect-x"><code>x</code></dfn> attribute, on setting, must set the <ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
1668
+
coordinate</a> to the new value.</p>
1681
1669
1682
-
<p>The <dfnid="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute, on getting, must return the <ahref="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>.
1683
-
On setting, the <ahref="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a> must be set to the new value.
1670
+
<p>The <dfnid="dom-domrectreadonly-y" title="dom-DOMRectReadOnly-y"><code>y</code></dfn> attribute, on getting, it must return the <ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
1671
+
coordinate</a>. The <dfnid="dom-domrect-y" title="dom-DOMRect-y"><code>y</code></dfn> attribute, on setting, must set the <ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
1672
+
coordinate</a> to the new value.</p>
1684
1673
1685
-
<p>The <dfnid="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute, on getting, must return the
1686
-
<ahref="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>. On setting, the <ahref="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> must be set to the new
1687
-
value.
1674
+
<p>The <dfnid="dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width"><code>width</code></dfn> attribute, on getting, must return the
1675
+
<ahref="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>. The <dfnid="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute, on setting, must set the
1676
+
<ahref="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a> to the new value.
<dfnid="dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width"><code>width</code></dfn> and<dfnid="dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height"><code>height</code></dfn>attributes of the
1691
-
<code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> interface, on getting, must behave the same as the attribute of the same name on the <code><ahref="#domrect">DOMRect</a></code> interface.
1678
+
<p>The <dfnid="dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height"><code>height</code></dfn> attribute, on getting, must return the
1679
+
<ahref="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>. The<dfnid="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn>attribute, on setting, must set the
1680
+
<ahref="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> to the new value.
1692
1681
1693
-
<p>The <dfnid="dom-abstractrect-top" title="dom-AbstractRect-top"><code>top</code></dfn> attribute, on getting, must return min(<ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
1682
+
<p>The <dfnid="dom-domrectreadonly-top" title="dom-DOMRectReadOnly-top"><code>top</code></dfn> attribute, on getting, must return min(<ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
<p>The <dfnid="dom-abstractrect-right" title="dom-AbstractRect-right"><code>right</code></dfn> attribute, on getting, must return max(<ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
<p>The <dfnid="dom-abstractrect-bottom" title="dom-AbstractRect-bottom"><code>bottom</code></dfn> attribute, on getting, must return max(<ahref="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
<p>The <dfnid="dom-abstractrect-left" title="dom-AbstractRect-left"><code>left</code></dfn> attribute, on getting, must return min(<ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
1693
+
<p>The <dfnid="dom-domrectreadonly-left" title="dom-DOMRectReadOnly-left"><code>left</code></dfn> attribute, on getting, must return min(<ahref="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
<ahref="#dompoint">DOMPoint</a><ahref="#dom-geometryutils-convertpointfromnode" title="dom-GeometryUtils-convertPointFromNode">convertPointFromNode</a>(<ahref="#dompointinit">DOMPointInit</a> point, <!--
0 commit comments