[cssom-view] Fiddle with DOMRect/DOMRectReadOnly some more. http://lists.w3.org/Archives/Public/www-style/2013Oct/0073.html

Wed, 02 Oct 2013 16:21:14 +0200

author
Simon Pieters <simonp@opera.com>
date
Wed, 02 Oct 2013 16:21:14 +0200
changeset 9323
6eba16fd75cb
parent 9322
8c29367d22d2
child 9324
221668c58b29

[cssom-view] Fiddle with DOMRect/DOMRectReadOnly some more. http://lists.w3.org/Archives/Public/www-style/2013Oct/0073.html

cssom-view/Overview.html file | annotate | diff | comparison | revisions
cssom-view/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/cssom-view/Overview.html	Wed Oct 02 11:45:45 2013 +0200
     1.2 +++ b/cssom-view/Overview.html	Wed Oct 02 16:21:14 2013 +0200
     1.3 @@ -1612,9 +1612,8 @@
     1.4  
     1.5  <h3 id="the-domrect-and-domrectreadonly-interfaces"><span class="secno">11.2 </span>The <code title="">DOMRect</code> and <code title="">DOMRectReadOnly</code> Interfaces</h3>
     1.6  
     1.7 -<p>Objects implementing the <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> interface represent a <dfn id="concept-geometry-rectangle" title="concept-geometry-rectangle">rectangle</dfn>.
     1.8 -The type of box is specified by the method or attribute that returns a <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> object. The interfaces are identical
     1.9 -except the attributes of <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> are readonly.
    1.10 +<p>Objects implementing the <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> interface represent a <dfn id="concept-geometry-rectangle" title="concept-geometry-rectangle">rectangle</dfn>. The type of box is
    1.11 +specified by the method or attribute that returns a <code><a href="#domrect">DOMRect</a></code> or <code><a href="#domrectreadonly">DOMRectReadOnly</a></code> object.
    1.12  
    1.13  <p><a href="#concept-geometry-rectangle" title="concept-geometry-rectangle">Rectangles</a> have the following properties:
    1.14  
    1.15 @@ -1636,11 +1635,11 @@
    1.16  <pre class="idl">[<a href="#dom-domrect" title="dom-DOMRect">Constructor</a>,
    1.17  <a href="#dom-domrect" title="dom-DOMRect">Constructor</a>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
    1.18  -->unrestricted double height)]
    1.19 -interface <dfn id="domrect">DOMRect</dfn> {
    1.20 -           attribute unrestricted double <a href="#dom-domrect-x" title="dom-DOMRect-x">x</a>;
    1.21 -           attribute unrestricted double <a href="#dom-domrect-y" title="dom-DOMRect-y">y</a>;
    1.22 -           attribute unrestricted double <a href="#dom-domrect-width" title="dom-DOMRect-width">width</a>;
    1.23 -           attribute unrestricted double <a href="#dom-domrect-height" title="dom-DOMRect-height">height</a>;
    1.24 +interface <dfn id="domrect">DOMRect</dfn> : <a href="#domrectreadonly">DOMRectReadOnly</a> {
    1.25 +  inherit attribute unrestricted double <a href="#dom-domrect-x" title="dom-DOMRect-x">x</a>;
    1.26 +  inherit attribute unrestricted double <a href="#dom-domrect-y" title="dom-DOMRect-y">y</a>;
    1.27 +  inherit attribute unrestricted double <a href="#dom-domrect-width" title="dom-DOMRect-width">width</a>;
    1.28 +  inherit attribute unrestricted double <a href="#dom-domrect-height" title="dom-DOMRect-height">height</a>;
    1.29  };
    1.30  
    1.31  interface <dfn id="domrectreadonly">DOMRectReadOnly</dfn> {
    1.32 @@ -1648,20 +1647,11 @@
    1.33    readonly attribute unrestricted double <a href="#dom-domrectreadonly-y" title="dom-DOMRectReadOnly-y">y</a>;
    1.34    readonly attribute unrestricted double <a href="#dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width">width</a>;
    1.35    readonly attribute unrestricted double <a href="#dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height">height</a>;
    1.36 -};
    1.37 -
    1.38 -[NoInterfaceObject]
    1.39 -interface <dfn id="abstractrect">AbstractRect</dfn> {
    1.40 -  readonly attribute unrestricted double <a href="#dom-abstractrect-top" title="dom-AbstractRect-top">top</a>;
    1.41 -  readonly attribute unrestricted double <a href="#dom-abstractrect-right" title="dom-AbstractRect-right">right</a>;
    1.42 -  readonly attribute unrestricted double <a href="#dom-abstractrect-bottom" title="dom-AbstractRect-bottom">bottom</a>;
    1.43 -  readonly attribute unrestricted double <a href="#dom-abstractrect-left" title="dom-AbstractRect-left">left</a>;
    1.44 -};
    1.45 -
    1.46 -<a href="#domrect">DOMRect</a> implements <a href="#abstractrect">AbstractRect</a>;
    1.47 -<a href="#domrectreadonly">DOMRectReadOnly</a> implements <a href="#abstractrect">AbstractRect</a>;
    1.48 -
    1.49 -typedef (<a href="#domrect">DOMRect</a> or <a href="#domrectreadonly">DOMRectReadOnly</a>) <dfn id="domrectany">DOMRectAny</dfn>;</pre>
    1.50 +  readonly attribute unrestricted double <a href="#dom-domrectreadonly-top" title="dom-DOMRectReadOnly-top">top</a>;
    1.51 +  readonly attribute unrestricted double <a href="#dom-domrectreadonly-right" title="dom-DOMRectReadOnly-right">right</a>;
    1.52 +  readonly attribute unrestricted double <a href="#dom-domrectreadonly-bottom" title="dom-DOMRectReadOnly-bottom">bottom</a>;
    1.53 +  readonly attribute unrestricted double <a href="#dom-domrectreadonly-left" title="dom-DOMRectReadOnly-left">left</a>;
    1.54 +};</pre>
    1.55  
    1.56  <p class="atrisk">The <dfn id="dom-domrect" title="dom-DOMRect"><code>DOMRect(<var>x</var>, <var>y</var>, <var>width</var>, <var>height</var>)</code></dfn> constructor, when
    1.57  invoked, must run the following steps:
    1.58 @@ -1673,33 +1663,34 @@
    1.59   <var>width</var> and <a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> set to <var>height</var>.
    1.60  </ol>
    1.61  
    1.62 -<p>The <dfn id="dom-domrect-x" title="dom-DOMRect-x"><code>x</code></dfn> attribute, on getting, it must return the <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
    1.63 -coordinate</a>. On setting, the <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a> must be set to the new value.</p>
    1.64 +<p>The <dfn id="dom-domrectreadonly-x" title="dom-DOMRectReadOnly-x"><code>x</code></dfn> attribute, on getting, must return the <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
    1.65 +coordinate</a>. The <dfn id="dom-domrect-x" title="dom-DOMRect-x"><code>x</code></dfn> attribute, on setting, must set the <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
    1.66 +coordinate</a> to the new value.</p>
    1.67  
    1.68 -<p>The <dfn id="dom-domrect-y" title="dom-DOMRect-y"><code>y</code></dfn> attribute, on getting, it must return the <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
    1.69 -coordinate</a>. On setting, the <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y coordinate</a> must be set to the new value.</p>
    1.70 +<p>The <dfn id="dom-domrectreadonly-y" title="dom-DOMRectReadOnly-y"><code>y</code></dfn> attribute, on getting, it must return the <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
    1.71 +coordinate</a>. The <dfn id="dom-domrect-y" title="dom-DOMRect-y"><code>y</code></dfn> attribute, on setting, must set the <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
    1.72 +coordinate</a> to the new value.</p>
    1.73  
    1.74 -<p>The <dfn id="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute, on getting, must return the <a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>.
    1.75 -On setting, the <a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a> must be set to the new value.
    1.76 +<p>The <dfn id="dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width"><code>width</code></dfn> attribute, on getting, must return the
    1.77 +<a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>. The <dfn id="dom-domrect-width" title="dom-DOMRect-width"><code>width</code></dfn> attribute, on setting, must set the
    1.78 +<a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a> to the new value.
    1.79  
    1.80 -<p>The <dfn id="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute, on getting, must return the
    1.81 -<a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>. On setting, the <a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> must be set to the new
    1.82 -value.
    1.83 +<p>The <dfn id="dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height"><code>height</code></dfn> attribute, on getting, must return the
    1.84 +<a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>. The <dfn id="dom-domrect-height" title="dom-DOMRect-height"><code>height</code></dfn> attribute, on setting, must set the
    1.85 +<a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a> to the new value.
    1.86  
    1.87 -<p>The <dfn id="dom-domrectreadonly-x" title="dom-DOMRectReadOnly-x"><code>x</code></dfn>, <dfn id="dom-domrectreadonly-y" title="dom-DOMRectReadOnly-y"><code>y</code></dfn>,
    1.88 -<dfn id="dom-domrectreadonly-width" title="dom-DOMRectReadOnly-width"><code>width</code></dfn> and <dfn id="dom-domrectreadonly-height" title="dom-DOMRectReadOnly-height"><code>height</code></dfn> attributes of the
    1.89 -<code><a href="#domrectreadonly">DOMRectReadOnly</a></code> interface, on getting, must behave the same as the attribute of the same name on the <code><a href="#domrect">DOMRect</a></code> interface.
    1.90 -
    1.91 -<p>The <dfn id="dom-abstractrect-top" title="dom-AbstractRect-top"><code>top</code></dfn> attribute, on getting, must return min(<a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
    1.92 +<p>The <dfn id="dom-domrectreadonly-top" title="dom-DOMRectReadOnly-top"><code>top</code></dfn> attribute, on getting, must return min(<a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
    1.93  coordinate</a>, <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y coordinate</a> + <a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>).
    1.94  
    1.95 -<p>The <dfn id="dom-abstractrect-right" title="dom-AbstractRect-right"><code>right</code></dfn> attribute, on getting, must return max(<a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
    1.96 -coordinate</a>, <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a> - <a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>).
    1.97 +<p>The <dfn id="dom-domrectreadonly-right" title="dom-DOMRectReadOnly-right"><code>right</code></dfn> attribute, on getting, must return
    1.98 +max(<a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a>, <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a> -
    1.99 +<a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>).
   1.100  
   1.101 -<p>The <dfn id="dom-abstractrect-bottom" title="dom-AbstractRect-bottom"><code>bottom</code></dfn> attribute, on getting, must return max(<a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y
   1.102 -coordinate</a>, <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y coordinate</a> - <a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>).
   1.103 +<p>The <dfn id="dom-domrectreadonly-bottom" title="dom-DOMRectReadOnly-bottom"><code>bottom</code></dfn> attribute, on getting, must return
   1.104 +max(<a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y coordinate</a>, <a href="#concept-geometry-rectangle-y-coordinate" title="concept-geometry-rectangle-y-coordinate">y coordinate</a> -
   1.105 +<a href="#concept-geometry-rectangle-height" title="concept-geometry-rectangle-height">height</a>).
   1.106  
   1.107 -<p>The <dfn id="dom-abstractrect-left" title="dom-AbstractRect-left"><code>left</code></dfn> attribute, on getting, must return min(<a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
   1.108 +<p>The <dfn id="dom-domrectreadonly-left" title="dom-DOMRectReadOnly-left"><code>left</code></dfn> attribute, on getting, must return min(<a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x
   1.109  coordinate</a>, <a href="#concept-geometry-rectangle-x-coordinate" title="concept-geometry-rectangle-x-coordinate">x coordinate</a> + <a href="#concept-geometry-rectangle-width" title="concept-geometry-rectangle-width">width</a>).
   1.110  
   1.111  
   1.112 @@ -1759,7 +1750,7 @@
   1.113  
   1.114  <pre class="idl">[<a href="#dom-domquad" title="dom-DOMQuad">Constructor</a>(<a href="#dompointinit">DOMPointInit</a> p1, <a href="#dompointinit">DOMPointInit</a> p2, <!--
   1.115  --><a href="#dompointinit">DOMPointInit</a> p3, <a href="#dompointinit">DOMPointInit</a> p4),
   1.116 - <a href="#dom-domquad" title="dom-DOMQuad">Constructor</a>(<a href="#domrectany">DOMRectAny</a> rect)]
   1.117 + <a href="#dom-domquad" title="dom-DOMQuad">Constructor</a>(<a href="#domrectreadonly">DOMRectReadOnly</a> rect)]
   1.118  interface <dfn id="domquad">DOMQuad</dfn> {
   1.119    [SameObject] readonly attribute <a href="#dompoint">DOMPoint</a> <a href="#dom-domquad-p1" title="dom-DOMQuad-p1">p1</a>;
   1.120    [SameObject] readonly attribute <a href="#dompoint">DOMPoint</a> <a href="#dom-domquad-p2" title="dom-DOMQuad-p2">p2</a>;
   1.121 @@ -1844,7 +1835,7 @@
   1.122    sequence&lt;<a href="#domquad">DOMQuad</a>&gt; <a href="#dom-geometryutils-getboxquads" title="dom-GeometryUtils-getBoxQuads">getBoxQuads</a>(optional <a href="#boxquadoptions">BoxQuadOptions</a> options);
   1.123    <a href="#domquad">DOMQuad</a> <a href="#dom-geometryutils-convertquadfromnode" title="dom-GeometryUtils-convertQuadFromNode">convertQuadFromNode</a>(<a href="#domquad">DOMQuad</a> quad, <!--
   1.124    --><a href="#geometrynode">GeometryNode</a> from, optional <a href="#convertcoordinateoptions">ConvertCoordinateOptions</a> options);
   1.125 -  <a href="#domquad">DOMQuad</a> <a href="#dom-geometryutils-convertrectfromnode" title="dom-GeometryUtils-convertRectFromNode">convertRectFromNode</a>(<a href="#domrectany">DOMRectAny</a> rect, <!--
   1.126 +  <a href="#domquad">DOMQuad</a> <a href="#dom-geometryutils-convertrectfromnode" title="dom-GeometryUtils-convertRectFromNode">convertRectFromNode</a>(<a href="#domrectreadonly">DOMRectReadOnly</a> rect, <!--
   1.127    --><a href="#geometrynode">GeometryNode</a> from, optional <a href="#convertcoordinateoptions">ConvertCoordinateOptions</a> options);
   1.128    <a href="#dompoint">DOMPoint</a> <a href="#dom-geometryutils-convertpointfromnode" title="dom-GeometryUtils-convertPointFromNode">convertPointFromNode</a>(<a href="#dompointinit">DOMPointInit</a> point, <!--
   1.129    --><a href="#geometrynode">GeometryNode</a> from, optional <a href="#convertcoordinateoptions">ConvertCoordinateOptions</a> options);
     2.1 --- a/cssom-view/Overview.src.html	Wed Oct 02 11:45:45 2013 +0200
     2.2 +++ b/cssom-view/Overview.src.html	Wed Oct 02 16:21:14 2013 +0200
     2.3 @@ -1570,9 +1570,8 @@
     2.4  
     2.5  <h3>The <code title>DOMRect</code> and <code title>DOMRectReadOnly</code> Interfaces</h3>
     2.6  
     2.7 -<p>Objects implementing the <code>DOMRect</code> or <code>DOMRectReadOnly</code> interface represent a <dfn title=concept-geometry-rectangle>rectangle</dfn>.
     2.8 -The type of box is specified by the method or attribute that returns a <code>DOMRect</code> or <code>DOMRectReadOnly</code> object. The interfaces are identical
     2.9 -except the attributes of <code>DOMRectReadOnly</code> are readonly.
    2.10 +<p>Objects implementing the <code>DOMRectReadOnly</code> interface represent a <dfn title=concept-geometry-rectangle>rectangle</dfn>. The type of box is
    2.11 +specified by the method or attribute that returns a <code>DOMRect</code> or <code>DOMRectReadOnly</code> object.
    2.12  
    2.13  <p><span title=concept-geometry-rectangle>Rectangles</span> have the following properties:
    2.14  
    2.15 @@ -1594,11 +1593,11 @@
    2.16  <pre class=idl>[<span title=dom-DOMRect>Constructor</span>,
    2.17  <span title=dom-DOMRect>Constructor</span>(unrestricted double x, unrestricted double y, unrestricted double width, <!--
    2.18  -->unrestricted double height)]
    2.19 -interface <dfn>DOMRect</dfn> {
    2.20 -           attribute unrestricted double <span title=dom-DOMRect-x>x</span>;
    2.21 -           attribute unrestricted double <span title=dom-DOMRect-y>y</span>;
    2.22 -           attribute unrestricted double <span title=dom-DOMRect-width>width</span>;
    2.23 -           attribute unrestricted double <span title=dom-DOMRect-height>height</span>;
    2.24 +interface <dfn>DOMRect</dfn> : <span>DOMRectReadOnly</span> {
    2.25 +  inherit attribute unrestricted double <span title=dom-DOMRect-x>x</span>;
    2.26 +  inherit attribute unrestricted double <span title=dom-DOMRect-y>y</span>;
    2.27 +  inherit attribute unrestricted double <span title=dom-DOMRect-width>width</span>;
    2.28 +  inherit attribute unrestricted double <span title=dom-DOMRect-height>height</span>;
    2.29  };
    2.30  
    2.31  interface <dfn>DOMRectReadOnly</dfn> {
    2.32 @@ -1606,20 +1605,11 @@
    2.33    readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-y>y</span>;
    2.34    readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-width>width</span>;
    2.35    readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-height>height</span>;
    2.36 -};
    2.37 -
    2.38 -[NoInterfaceObject]
    2.39 -interface <dfn>AbstractRect</dfn> {
    2.40 -  readonly attribute unrestricted double <span title=dom-AbstractRect-top>top</span>;
    2.41 -  readonly attribute unrestricted double <span title=dom-AbstractRect-right>right</span>;
    2.42 -  readonly attribute unrestricted double <span title=dom-AbstractRect-bottom>bottom</span>;
    2.43 -  readonly attribute unrestricted double <span title=dom-AbstractRect-left>left</span>;
    2.44 -};
    2.45 -
    2.46 -<span>DOMRect</span> implements <span>AbstractRect</span>;
    2.47 -<span>DOMRectReadOnly</span> implements <span>AbstractRect</span>;
    2.48 -
    2.49 -typedef (<span>DOMRect</span> or <span>DOMRectReadOnly</span>) <dfn>DOMRectAny</dfn>;</pre>
    2.50 +  readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-top>top</span>;
    2.51 +  readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-right>right</span>;
    2.52 +  readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-bottom>bottom</span>;
    2.53 +  readonly attribute unrestricted double <span title=dom-DOMRectReadOnly-left>left</span>;
    2.54 +};</pre>
    2.55  
    2.56  <p class=atrisk>The <dfn title=dom-DOMRect><code>DOMRect(<var>x</var>, <var>y</var>, <var>width</var>, <var>height</var>)</code></dfn> constructor, when
    2.57  invoked, must run the following steps:
    2.58 @@ -1631,33 +1621,34 @@
    2.59   <var>width</var> and <span title=concept-geometry-rectangle-height>height</span> set to <var>height</var>.
    2.60  </ol>
    2.61  
    2.62 -<p>The <dfn title=dom-DOMRect-x><code>x</code></dfn> attribute, on getting, it must return the <span title=concept-geometry-rectangle-x-coordinate>x
    2.63 -coordinate</span>. On setting, the <span title=concept-geometry-rectangle-x-coordinate>x coordinate</span> must be set to the new value.</p>
    2.64 +<p>The <dfn title=dom-DOMRectReadOnly-x><code>x</code></dfn> attribute, on getting, must return the <span title=concept-geometry-rectangle-x-coordinate>x
    2.65 +coordinate</span>. The <dfn title=dom-DOMRect-x><code>x</code></dfn> attribute, on setting, must set the <span title=concept-geometry-rectangle-x-coordinate>x
    2.66 +coordinate</span> to the new value.</p>
    2.67  
    2.68 -<p>The <dfn title=dom-DOMRect-y><code>y</code></dfn> attribute, on getting, it must return the <span title=concept-geometry-rectangle-y-coordinate>y
    2.69 -coordinate</span>. On setting, the <span title=concept-geometry-rectangle-y-coordinate>y coordinate</span> must be set to the new value.</p>
    2.70 +<p>The <dfn title=dom-DOMRectReadOnly-y><code>y</code></dfn> attribute, on getting, it must return the <span title=concept-geometry-rectangle-y-coordinate>y
    2.71 +coordinate</span>. The <dfn title=dom-DOMRect-y><code>y</code></dfn> attribute, on setting, must set the <span title=concept-geometry-rectangle-y-coordinate>y
    2.72 +coordinate</span> to the new value.</p>
    2.73  
    2.74 -<p>The <dfn title=dom-DOMRect-width><code>width</code></dfn> attribute, on getting, must return the <span title=concept-geometry-rectangle-width>width</span>.
    2.75 -On setting, the <span title=concept-geometry-rectangle-width>width</span> must be set to the new value.
    2.76 +<p>The <dfn title=dom-DOMRectReadOnly-width><code>width</code></dfn> attribute, on getting, must return the
    2.77 +<span title=concept-geometry-rectangle-width>width</span>. The <dfn title=dom-DOMRect-width><code>width</code></dfn> attribute, on setting, must set the
    2.78 +<span title=concept-geometry-rectangle-width>width</span> to the new value.
    2.79  
    2.80 -<p>The <dfn title=dom-DOMRect-height><code>height</code></dfn> attribute, on getting, must return the
    2.81 -<span title=concept-geometry-rectangle-height>height</span>. On setting, the <span title=concept-geometry-rectangle-height>height</span> must be set to the new
    2.82 -value.
    2.83 +<p>The <dfn title=dom-DOMRectReadOnly-height><code>height</code></dfn> attribute, on getting, must return the
    2.84 +<span title=concept-geometry-rectangle-height>height</span>. The <dfn title=dom-DOMRect-height><code>height</code></dfn> attribute, on setting, must set the
    2.85 +<span title=concept-geometry-rectangle-height>height</span> to the new value.
    2.86  
    2.87 -<p>The <dfn title=dom-DOMRectReadOnly-x><code>x</code></dfn>, <dfn title=dom-DOMRectReadOnly-y><code>y</code></dfn>,
    2.88 -<dfn title=dom-DOMRectReadOnly-width><code>width</code></dfn> and <dfn title=dom-DOMRectReadOnly-height><code>height</code></dfn> attributes of the
    2.89 -<code>DOMRectReadOnly</code> interface, on getting, must behave the same as the attribute of the same name on the <code>DOMRect</code> interface.
    2.90 -
    2.91 -<p>The <dfn title=dom-AbstractRect-top><code>top</code></dfn> attribute, on getting, must return min(<span title=concept-geometry-rectangle-y-coordinate>y
    2.92 +<p>The <dfn title=dom-DOMRectReadOnly-top><code>top</code></dfn> attribute, on getting, must return min(<span title=concept-geometry-rectangle-y-coordinate>y
    2.93  coordinate</span>, <span title=concept-geometry-rectangle-y-coordinate>y coordinate</span> + <span title=concept-geometry-rectangle-height>height</span>).
    2.94  
    2.95 -<p>The <dfn title=dom-AbstractRect-right><code>right</code></dfn> attribute, on getting, must return max(<span title=concept-geometry-rectangle-x-coordinate>x
    2.96 -coordinate</span>, <span title=concept-geometry-rectangle-x-coordinate>x coordinate</span> - <span title=concept-geometry-rectangle-width>width</span>).
    2.97 +<p>The <dfn title=dom-DOMRectReadOnly-right><code>right</code></dfn> attribute, on getting, must return
    2.98 +max(<span title=concept-geometry-rectangle-x-coordinate>x coordinate</span>, <span title=concept-geometry-rectangle-x-coordinate>x coordinate</span> -
    2.99 +<span title=concept-geometry-rectangle-width>width</span>).
   2.100  
   2.101 -<p>The <dfn title=dom-AbstractRect-bottom><code>bottom</code></dfn> attribute, on getting, must return max(<span title=concept-geometry-rectangle-y-coordinate>y
   2.102 -coordinate</span>, <span title=concept-geometry-rectangle-y-coordinate>y coordinate</span> - <span title=concept-geometry-rectangle-height>height</span>).
   2.103 +<p>The <dfn title=dom-DOMRectReadOnly-bottom><code>bottom</code></dfn> attribute, on getting, must return
   2.104 +max(<span title=concept-geometry-rectangle-y-coordinate>y coordinate</span>, <span title=concept-geometry-rectangle-y-coordinate>y coordinate</span> -
   2.105 +<span title=concept-geometry-rectangle-height>height</span>).
   2.106  
   2.107 -<p>The <dfn title=dom-AbstractRect-left><code>left</code></dfn> attribute, on getting, must return min(<span title=concept-geometry-rectangle-x-coordinate>x
   2.108 +<p>The <dfn title=dom-DOMRectReadOnly-left><code>left</code></dfn> attribute, on getting, must return min(<span title=concept-geometry-rectangle-x-coordinate>x
   2.109  coordinate</span>, <span title=concept-geometry-rectangle-x-coordinate>x coordinate</span> + <span title=concept-geometry-rectangle-width>width</span>).
   2.110  
   2.111  
   2.112 @@ -1717,7 +1708,7 @@
   2.113  
   2.114  <pre class=idl>[<span title=dom-DOMQuad>Constructor</span>(<span>DOMPointInit</span> p1, <span>DOMPointInit</span> p2, <!--
   2.115  --><span>DOMPointInit</span> p3, <span>DOMPointInit</span> p4),
   2.116 - <span title=dom-DOMQuad>Constructor</span>(<span>DOMRectAny</span> rect)]
   2.117 + <span title=dom-DOMQuad>Constructor</span>(<span>DOMRectReadOnly</span> rect)]
   2.118  interface <dfn>DOMQuad</dfn> {
   2.119    [SameObject] readonly attribute <span>DOMPoint</span> <span title=dom-DOMQuad-p1>p1</span>;
   2.120    [SameObject] readonly attribute <span>DOMPoint</span> <span title=dom-DOMQuad-p2>p2</span>;
   2.121 @@ -1802,7 +1793,7 @@
   2.122    sequence&lt;<span>DOMQuad</span>> <span title=dom-GeometryUtils-getBoxQuads>getBoxQuads</span>(optional <span>BoxQuadOptions</span> options);
   2.123    <span>DOMQuad</span> <span title=dom-GeometryUtils-convertQuadFromNode>convertQuadFromNode</span>(<span>DOMQuad</span> quad, <!--
   2.124    --><span>GeometryNode</span> from, optional <span>ConvertCoordinateOptions</span> options);
   2.125 -  <span>DOMQuad</span> <span title=dom-GeometryUtils-convertRectFromNode>convertRectFromNode</span>(<span>DOMRectAny</span> rect, <!--
   2.126 +  <span>DOMQuad</span> <span title=dom-GeometryUtils-convertRectFromNode>convertRectFromNode</span>(<span>DOMRectReadOnly</span> rect, <!--
   2.127    --><span>GeometryNode</span> from, optional <span>ConvertCoordinateOptions</span> options);
   2.128    <span>DOMPoint</span> <span title=dom-GeometryUtils-convertPointFromNode>convertPointFromNode</span>(<span>DOMPointInit</span> point, <!--
   2.129    --><span>GeometryNode</span> from, optional <span>ConvertCoordinateOptions</span> options);

mercurial