Fri, 01 Nov 2013 15:31:17 +0100
[geometry] Spec SVGMatrix better. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23702
geometry/Overview.html | file | annotate | diff | comparison | revisions | |
geometry/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/geometry/Overview.html Fri Nov 01 15:18:43 2013 +0100 1.2 +++ b/geometry/Overview.html Fri Nov 01 15:31:17 2013 +0100 1.3 @@ -328,7 +328,7 @@ 1.4 <p> The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-p4>p4<a class=self-link href=#dom-domquad-p4></a></dfn> attribute must return the <a class=idl-code data-link-type=interface href=http://dev.w3.org/csswg/cssom-view-1/#dompoint title=dompoint>DOMPoint</a> it was set to. 1.5 1.6 <p> The <dfn class=idl-code data-dfn-for=DOMQuad data-dfn-type=attribute data-export="" id=dom-domquad-bounds>bounds<a class=self-link href=#dom-domquad-bounds></a></dfn> attribute must return the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a>. 1.7 - 1.8 +</div> 1.9 1.10 <p>The <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> is live; whenever the objects in <a class=idl-code data-link-type=attribute href=#dom-domquad-p1 title=p1>p1</a>, <a class=idl-code data-link-type=attribute href=#dom-domquad-p2 title=p2>p2</a>, <a class=idl-code data-link-type=attribute href=#dom-domquad-p3 title=p3>p3</a> or <a class=idl-code data-link-type=attribute href=#dom-domquad-p4 title=p4>p4</a> are changed, the <a data-link-type=dfn href=#associated-bounding-rectangle title="associated bounding rectangle">associated bounding rectangle</a> must update its attributes as appropriate to describe the new smallest bounding box of the four points. 1.11 1.12 @@ -337,7 +337,9 @@ 1.13 1.14 <p>The <a class=idl-code data-link-type=interface href=#dom-dommatrix title=dommatrix>DOMMatrix</a> interface represents a mathematical matrix with the purpose of describing transformations a graphical contexts. The following sections describe the details of the interface. 1.15 1.16 -<p><a class=idl-code data-link-type=interface href=#dom-dommatrix title=dommatrix>DOMMatrix</a> aims to replace the SVGMatrix interface from SVG <a data-biblio-type=informative data-link-type=biblio href=#svg11 title=svg11>[SVG11]</a>. However, the SVGMatrix interface is mandatory for user agents with support for SVG. The SVGMatrix interface must be an alias to the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=dommatrix>DOMMatrix</a> interface, the same way as the HTMLDocument interface is to the <a class=idl-code data-link-type=interface href=http://www.w3.org/html/wg/drafts/html/CR/dom.html#document title=document>Document</a> interface. 1.17 +<p><a class=idl-code data-link-type=interface href=#dom-dommatrix title=dommatrix>DOMMatrix</a> aims to replace the SVGMatrix interface from SVG <a data-biblio-type=informative data-link-type=biblio href=#svg11 title=svg11>[SVG11]</a>. 1.18 + 1.19 +<p>For historical reasons, if the user agent supports SVG, <a class=idl-code data-link-type=interface href=http://www.w3.org/html/wg/drafts/html/CR/browsers.html#window title=window>Window</a> objects must have a writable, configurable, non-enumerable property named <dfn data-dfn-type=dfn data-noexport="" id=svgmatrix>SVGMatrix<a class=self-link href=#svgmatrix></a></dfn> whose value is the <a class=idl-code data-link-type=interface href=#dom-dommatrix title=dommatrix>DOMMatrix</a> interface object. <a data-biblio-type=informative data-link-type=biblio href=#svg11 title=svg11>[SVG11]</a> 1.20 1.21 <div class=figure> 1.22 <img alt="4x4 matrix with items m11 to m44" src=images/4x4matrix.png> 1.23 @@ -760,6 +762,7 @@ 1.24 <li>skewXBy(), <a href=#dom-dommatrix-skewxby title="section 7">7</a> 1.25 <li>skewY(), <a href=#dom-dommatrixreadonly-skewy title="section 7">7</a> 1.26 <li>skewYBy(), <a href=#dom-dommatrix-skewyby title="section 7">7</a> 1.27 +<li>SVGMatrix, <a href=#svgmatrix title="section 7">7</a> 1.28 <li>sx<ul><li>argument for DOMMatrixReadOnly/skewX(), <a href=#dom-dommatrixreadonlyskewx-sx title="section 7">7</a> 1.29 <li>argument for DOMMatrix/skewXBy(), <a href=#dom-dommatrixskewxby-sx title="section 7">7</a> 1.30 </ul><li>sy<ul><li>argument for DOMMatrixReadOnly/skewY(), <a href=#dom-dommatrixreadonlyskewy-sy title="section 7">7</a> 1.31 @@ -815,7 +818,7 @@ 1.32 <div data-fill-with=property-index><p>No properties defined.</div> 1.33 1.34 1.35 -</div><h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><p class=issue>SVGPoint has a method: SVGPoint matrixTransform(in SVGMatrix matrix);<br>Should it be adapted and added here as well?<a href=#issue-ffc97e37> ↵ </a></p> 1.36 +<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><p class=issue>SVGPoint has a method: SVGPoint matrixTransform(in SVGMatrix matrix);<br>Should it be adapted and added here as well?<a href=#issue-ffc97e37> ↵ </a></p> 1.37 1.38 <p class=issue>SVG defines SVGPointList. Should we modify SVGPointList or create two new interfaces DOMPointList and DOMPointListReadOnly?<a href=#issue-ec356a5c> ↵ </a></p> 1.39
2.1 --- a/geometry/Overview.src.html Fri Nov 01 15:18:43 2013 +0100 2.2 +++ b/geometry/Overview.src.html Fri Nov 01 15:31:17 2013 +0100 2.3 @@ -270,7 +270,7 @@ 2.4 The <dfn>p4</dfn> attribute must return the <a interface>DOMPoint</a> it was set to. 2.5 2.6 The <dfn>bounds</dfn> attribute must return the <a>associated bounding rectangle</a>. 2.7 -</dl> 2.8 +</div> 2.9 2.10 The <a>associated bounding rectangle</a> is live; whenever the objects in <a attribute>p1</a>, <a attribute>p2</a>, <a attribute>p3</a> or <a attribute>p4</a> are changed, the <a>associated bounding rectangle</a> must update its attributes as appropriate to describe the new smallest bounding box of the four points. 2.11 2.12 @@ -279,7 +279,9 @@ 2.13 2.14 The <a interface>DOMMatrix</a> interface represents a mathematical matrix with the purpose of describing transformations a graphical contexts. The following sections describe the details of the interface. 2.15 2.16 -<a interface>DOMMatrix</a> aims to replace the SVGMatrix interface from SVG [[SVG11]]. However, the SVGMatrix interface is mandatory for user agents with support for SVG. The SVGMatrix interface must be an alias to the <a interface>DOMMatrix</a> interface, the same way as the HTMLDocument interface is to the <a interface>Document</a> interface. 2.17 +<a interface>DOMMatrix</a> aims to replace the SVGMatrix interface from SVG [[SVG11]]. 2.18 + 2.19 +For historical reasons, if the user agent supports SVG, <a interface>Window</a> objects must have a writable, configurable, non-enumerable property named <dfn>SVGMatrix</dfn> whose value is the <a interface>DOMMatrix</a> interface object. [[SVG11]] 2.20 2.21 <div class="figure"> 2.22 <img src="images/4x4matrix.png" alt="4x4 matrix with items m11 to m44">