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
greater than the number of <code><ahref="#domrect">DOMRect</a></code> objects associated with the object. Otherwise, the <code><ahref="#domrect">DOMRect</a></code> object at
1611
1611
<var>index</var> must be returned.</p>
1612
1612
1613
-
<h3id="the-domrect-and-domrectimmutable-interfaces"><spanclass="secno">11.2 </span>The <codetitle="">DOMRect</code> and <codetitle="">DOMRectImmutable</code> Interfaces</h3>
1613
+
<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="#domrectimmutable">DOMRectImmutable</a></code> interface represent a rectangular box. The type of box is specified by the
1616
-
method or attribute that returns a <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object. The interfaces are identical except the attributes of
1617
-
<code><ahref="#domrectimmutable">DOMRectImmutable</a></code> are readonly.
1615
+
<p>Objects implementing the <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> interface represent a rectangular box. The type of box is specified by the
1616
+
method or attribute that returns a <code><ahref="#domrect">DOMRect</a></code> or <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> object. The interfaces are identical except the attributes of
1617
+
<code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> are readonly.
minus <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>. On setting, the <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code> attribute must be set to the new value plus the value
1670
1670
of <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>.</p>
<dfnid="dom-domrectimmutable-width" title="dom-DOMRectImmutable-width"><code>width</code></dfn> and <dfnid="dom-domrectimmutable-height" title="dom-DOMRectImmutable-height"><code>height</code></dfn> attributes of the
1675
-
<code><ahref="#domrectimmutable">DOMRectImmutable</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.
<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
1675
+
<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.
<p>Objects implementing the <code><ahref="#domquad">DOMQuad</a></code> interface represents a quadrilateral shape. <code><ahref="#domquad">DOMQuad</a></code> objects have an <dfnid="associated-bounding-rectangle">associated
1730
-
bounding rectangle</dfn> set to a <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object when created.
1730
+
bounding rectangle</dfn> set to a <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> object when created.
<li><p>Let <var>point 4</var> be a new <code><ahref="#dompoint">DOMPoint</a></code> object with <codetitle="dom-DOMPoint-x"><ahref="#dom-dompoint-x">x</a></code> set to <var>left</var>,
1762
1762
<codetitle="dom-DOMPoint-y"><ahref="#dom-dompoint-y">y</a></code> set to <var>bottom</var>, <codetitle="dom-DOMPoint-z"><ahref="#dom-dompoint-z">z</a></code> set to zero and <codetitle="dom-DOMPoint-w"><ahref="#dom-dompoint-w">w</a></code> set to
1763
1763
one.
1764
-
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object with its attributes set to the values of the namesake attributes in
1764
+
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> object with its attributes set to the values of the namesake attributes in
<li><p>Let <var>point 4</var> be a new <code><ahref="#dompoint">DOMPoint</a></code> object with its attributes set to the values of the namesake dictionary members in
1777
1777
<var>p4</var>.
1778
-
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrectimmutable">DOMRectImmutable</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1778
+
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrectreadonly">DOMRectReadOnly</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1779
1779
3</var> and <var>point 4</var>.
1780
1780
</ol>
1781
1781
<li><p>Return a new <code><ahref="#domquad">DOMQuad</a></code> with <codetitle="dom-DOMQuad-p1"><ahref="#dom-domquad-p1">p1</a></code> set to <var>point 1</var>, <codetitle="dom-DOMQuad-p2"><ahref="#dom-domquad-p2">p2</a></code> set to
greater than the number of <code>DOMRect</code> objects associated with the object. Otherwise, the <code>DOMRect</code> object at
1569
1569
<var>index</var> must be returned.</p>
1570
1570
1571
-
<h3>The <codetitle>DOMRect</code> and <codetitle>DOMRectImmutable</code> Interfaces</h3>
1571
+
<h3>The <codetitle>DOMRect</code> and <codetitle>DOMRectReadOnly</code> Interfaces</h3>
1572
1572
1573
-
<p>Objects implementing the <code>DOMRect</code> or <code>DOMRectImmutable</code> interface represent a rectangular box. The type of box is specified by the
1574
-
method or attribute that returns a <code>DOMRect</code> or <code>DOMRectImmutable</code> object. The interfaces are identical except the attributes of
1575
-
<code>DOMRectImmutable</code> are readonly.
1573
+
<p>Objects implementing the <code>DOMRect</code> or <code>DOMRectReadOnly</code> interface represent a rectangular box. The type of box is specified by the
1574
+
method or attribute that returns a <code>DOMRect</code> or <code>DOMRectReadOnly</code> object. The interfaces are identical except the attributes of
typedef (<span>DOMRect</span> or <span>DOMRectImmutable</span>) <dfn>DOMRectAny</dfn>;</pre>
1597
+
typedef (<span>DOMRect</span> or <span>DOMRectReadOnly</span>) <dfn>DOMRectAny</dfn>;</pre>
1598
1598
1599
1599
<pclass=atrisk>The <dfntitle=dom-DOMRect><code>DOMRect(<var>left</var>, <var>top</var>, <var>width</var>, <var>height</var>)</code></dfn> constructor, when
1600
1600
invoked, must run the following steps:
@@ -1627,10 +1627,10 @@ <h3>The <code title>DOMRect</code> and <code title>DOMRectImmutable</code> Inter
1627
1627
minus <codetitle=dom-DOMRect-top>top</code>. On setting, the <codetitle=dom-DOMRect-bottom>bottom</code> attribute must be set to the new value plus the value
<li><p>Let <var>point 4</var> be a new <code>DOMPoint</code> object with <codetitle=dom-DOMPoint-x>x</code> set to <var>left</var>,
1720
1720
<codetitle=dom-DOMPoint-y>y</code> set to <var>bottom</var>, <codetitle=dom-DOMPoint-z>z</code> set to zero and <codetitle=dom-DOMPoint-w>w</code> set to
1721
1721
one.
1722
-
<li><p>Let <var>bounds</var> be a new <code>DOMRectImmutable</code> object with its attributes set to the values of the namesake attributes in
1722
+
<li><p>Let <var>bounds</var> be a new <code>DOMRectReadOnly</code> object with its attributes set to the values of the namesake attributes in
<li><p>Let <var>point 4</var> be a new <code>DOMPoint</code> object with its attributes set to the values of the namesake dictionary members in
1735
1735
<var>p4</var>.
1736
-
<li><p>Let <var>bounds</var> be a new <code>DOMRectImmutable</code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1736
+
<li><p>Let <var>bounds</var> be a new <code>DOMRectReadOnly</code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point
1737
1737
3</var> and <var>point 4</var>.
1738
1738
</ol>
1739
1739
<li><p>Return a new <code>DOMQuad</code> with <codetitle=dom-DOMQuad-p1>p1</code> set to <var>point 1</var>, <codetitle=dom-DOMQuad-p2>p2</code> set to
0 commit comments