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
<p>Objects implementing the <code><ahref="#domrect">DOMRect</a></code> interface represent a rectangular box. The type of box is specified by the method that returns a
<code><ahref="#domrect">DOMRect</a></code> object. A <code><ahref="#domrect">DOMRect</a></code> object has a <i>readonly</i> flag, which is unset unless otherwise stated.</p>
<p>The <dfnid="dom-domrect-top" title="dom-DOMRect-top"><code>top</code></dfn> attribute must return the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the top of
1640
-
the rectangle box.</p>
1639
+
<p>The <dfnid="dom-domrect-top" title="dom-DOMRect-top"><code>top</code></dfn> attribute gives the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the top of
1640
+
the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1641
+
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1641
1642
1642
-
<p>The <dfnid="dom-domrect-right" title="dom-DOMRect-right"><code>right</code></dfn> attribute must return the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1643
-
right of the rectangle box.</p>
1643
+
<p>The <dfnid="dom-domrect-right" title="dom-DOMRect-right"><code>right</code></dfn> attribute gives the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1644
+
right of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1645
+
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1644
1646
1645
-
<p>The <dfnid="dom-domrect-bottom" title="dom-DOMRect-bottom"><code>bottom</code></dfn> attribute must return the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1646
-
bottom of the rectangle box.</p>
1647
+
<p>The <dfnid="dom-domrect-bottom" title="dom-DOMRect-bottom"><code>bottom</code></dfn> attribute gives the y-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the
1648
+
bottom of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1649
+
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1647
1650
1648
-
<p>The <dfnid="dom-domrect-left" title="dom-DOMRect-left"><code>left</code></dfn> attribute must return the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the left
1649
-
of the rectangle box.</p>
1651
+
<p>The <dfnid="dom-domrect-left" title="dom-DOMRect-left"><code>left</code></dfn> attribute gives the x-coordinate, relative to the <ahref="#viewport">viewport</a> origin, of the left
1652
+
of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1653
+
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1650
1654
1651
-
<p>The <dfnid="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute must return the value of <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> minus
1655
+
<p>The <dfnid="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute, on getting, must return the value of <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> minus
1656
+
<codetitle="dom-DOMRect-left"><ahref="#dom-domrect-left">left</a></code>. On setting, if the <i>readonly</i> flag is set, a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>
1657
+
exception must be thrown. Otherwise, the <codetitle="dom-DOMRect-right"><ahref="#dom-domrect-right">right</a></code> attribute must be set to the new value plus the value of
<p>The <dfnid="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute must return the value of <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code> minus
1660
+
<p>The <dfnid="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute, on getting, must return the value of <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code>
1661
+
minus <codetitle="dom-DOMRect-top"><ahref="#dom-domrect-top">top</a></code>. On setting, if the <i>readonly</i> flag is set, a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#nomodificationallowederror">NoModificationAllowedError</a></code>
1662
+
exception must be thrown. Otherwise, the <codetitle="dom-DOMRect-bottom"><ahref="#dom-domrect-bottom">bottom</a></code> attribute must be set to the new value plus the value of
<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>,
1741
1749
<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
1742
1750
one.
1743
-
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrect">DOMRect</a></code> object with its attributes set to the values of the namesake attributes in <var>rect</var>.
1751
+
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrect">DOMRect</a></code> object with its attributes set to the values of the namesake attributes in <var>rect</var>, and
<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
1755
1764
<var>p4</var>.
1756
1765
<li><p>Let <var>bounds</var> be a new <code><ahref="#domrect">DOMRect</a></code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point 3</var>
1757
-
and <var>point 4</var>.
1766
+
and <var>point 4</var>, and with the <i>readonly</i> flag set.
1758
1767
</ol>
1759
1768
<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
1760
1769
<var>point 2</var>, <codetitle="dom-DOMQuad-p3"><ahref="#dom-domquad-p3">p3</a></code> set to <var>point 3</var> and <codetitle="dom-DOMQuad-p4"><ahref="#dom-domquad-p4">p4</a></code> set to <var>point 4</var>, and
<p>The <dfntitle=dom-DOMRect-top><code>top</code></dfn> attribute must return the y-coordinate, relative to the <span>viewport</span> origin, of the top of
1598
-
the rectangle box.</p>
1597
+
<p>The <dfntitle=dom-DOMRect-top><code>top</code></dfn> attribute gives the y-coordinate, relative to the <span>viewport</span> origin, of the top of
1598
+
the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1599
+
<codedata-anolis-spec=dom>NoModificationAllowedError</code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1599
1600
1600
-
<p>The <dfntitle=dom-DOMRect-right><code>right</code></dfn> attribute must return the x-coordinate, relative to the <span>viewport</span> origin, of the
1601
-
right of the rectangle box.</p>
1601
+
<p>The <dfntitle=dom-DOMRect-right><code>right</code></dfn> attribute gives the x-coordinate, relative to the <span>viewport</span> origin, of the
1602
+
right of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1603
+
<codedata-anolis-spec=dom>NoModificationAllowedError</code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1602
1604
1603
-
<p>The <dfntitle=dom-DOMRect-bottom><code>bottom</code></dfn> attribute must return the y-coordinate, relative to the <span>viewport</span> origin, of the
1604
-
bottom of the rectangle box.</p>
1605
+
<p>The <dfntitle=dom-DOMRect-bottom><code>bottom</code></dfn> attribute gives the y-coordinate, relative to the <span>viewport</span> origin, of the
1606
+
bottom of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1607
+
<codedata-anolis-spec=dom>NoModificationAllowedError</code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1605
1608
1606
-
<p>The <dfntitle=dom-DOMRect-left><code>left</code></dfn> attribute must return the x-coordinate, relative to the <span>viewport</span> origin, of the left
1607
-
of the rectangle box.</p>
1609
+
<p>The <dfntitle=dom-DOMRect-left><code>left</code></dfn> attribute gives the x-coordinate, relative to the <span>viewport</span> origin, of the left
1610
+
of the rectangle box. On getting, it must return the current value. On setting, if the <i>readonly</i> flag is set, a
1611
+
<codedata-anolis-spec=dom>NoModificationAllowedError</code> exception must be thrown. Otherwise, the current value must be set to the new value.</p>
1608
1612
1609
-
<p>The <dfntitle=dom-DOMRect-width><code>width</code></dfn> attribute must return the value of <codetitle=dom-DOMRect-right>right</code> minus
1613
+
<p>The <dfntitle=dom-DOMRect-width><code>width</code></dfn> attribute, on getting, must return the value of <codetitle=dom-DOMRect-right>right</code> minus
1614
+
<codetitle=dom-DOMRect-left>left</code>. On setting, if the <i>readonly</i> flag is set, a <codedata-anolis-spec=dom>NoModificationAllowedError</code>
1615
+
exception must be thrown. Otherwise, the <codetitle=dom-DOMRect-right>right</code> attribute must be set to the new value plus the value of
1610
1616
<codetitle=dom-DOMRect-left>left</code>.</p>
1611
1617
1612
-
<p>The <dfntitle=dom-DOMRect-height><code>height</code></dfn> attribute must return the value of <codetitle=dom-DOMRect-bottom>bottom</code> minus
1618
+
<p>The <dfntitle=dom-DOMRect-height><code>height</code></dfn> attribute, on getting, must return the value of <codetitle=dom-DOMRect-bottom>bottom</code>
1619
+
minus <codetitle=dom-DOMRect-top>top</code>. On setting, if the <i>readonly</i> flag is set, a <codedata-anolis-spec=dom>NoModificationAllowedError</code>
1620
+
exception must be thrown. Otherwise, the <codetitle=dom-DOMRect-bottom>bottom</code> attribute must be set to the new value plus the value of
<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>,
1699
1707
<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
1700
1708
one.
1701
-
<li><p>Let <var>bounds</var> be a new <code>DOMRect</code> object with its attributes set to the values of the namesake attributes in <var>rect</var>.
1709
+
<li><p>Let <var>bounds</var> be a new <code>DOMRect</code> object with its attributes set to the values of the namesake attributes in <var>rect</var>, and
<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
1713
1722
<var>p4</var>.
1714
1723
<li><p>Let <var>bounds</var> be a new <code>DOMRect</code> object describing the bounding box of <var>point 1</var>, <var>point 2</var>, <var>point 3</var>
1715
-
and <var>point 4</var>.
1724
+
and <var>point 4</var>, and with the <i>readonly</i> flag set.
1716
1725
</ol>
1717
1726
<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
1718
1727
<var>point 2</var>, <codetitle=dom-DOMQuad-p3>p3</code> set to <var>point 3</var> and <codetitle=dom-DOMQuad-p4>p4</code> set to <var>point 4</var>, and
0 commit comments