- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Mon, 10 Jun 2013 02:34:45 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/e3b4bd007127 branches: changeset: 508:e3b4bd007127 user: Dirk Schulze <dschulze@adobe.com> date: Mon Jun 10 02:32:37 2013 -0700 description: Clarify the interaction of transform with currentScale and currentTranslate diffstat: master/changes.html | 2 ++ master/struct.html | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diffs (65 lines): diff --git a/master/changes.html b/master/changes.html --- a/master/changes.html +++ b/master/changes.html @@ -98,16 +98,18 @@ have been made.</p> <li>Added the ability to use <span class="attr-value">'auto'</span> for the <a>'image/x'</a> and <a>'image/y'</a> attributes on <a>'image'</a>.</li> <li>Lifted the restriction on <a>'use'</a> not being able to reference an entire document.</li> <li>Added <a>'lang'</a> attribute on <a>'desc'</a> and <a>'title'</a> elements.</li> <li>Added section on WAI-ARIA attributes.</li> + + <li>Clarified that CSS transforms on an <a>outermost svg element</a> do not affect <a>currentScale</a> or <a>currentTranslate</a>. Defined the returned values on <a>'svg'</a> elements that are not <a>outermost svg element</a>.</li> </ul> <h3 id="styling">Styling chapter</h3> <ul> <li>Removed the <span class="attr-name">'contentStyleType'</span> attribute.</li> </ul> diff --git a/master/struct.html b/master/struct.html --- a/master/struct.html +++ b/master/struct.html @@ -2542,33 +2542,35 @@ and panning</a>. DOM attributes <a>curre <a>currentTranslate</a> are equivalent to the 2x3 matrix [a b c d e f] = [currentScale 0 0 currentScale currentTranslate.x currentTranslate.y]. If "magnification" is enabled (i.e., <span class="attr-value">zoomAndPan="magnify"</span>), then the effect is as if an extra transformation were placed at the outermost level on the SVG document fragment (i.e., outside the <a>outermost svg element</a>). +<p>The value of a transform property on the <a>outermost svg element</a> does not affect the value of this attribute.</p> + <p>When accessed on an <a>'svg'</a> element that is not an -<a>outermost svg element</a>, it is undefined what behavior -this attribute has. +<a>outermost svg element</a>, this attribute must return 1 as scaling factor. </p> </div> </dd> <dt id="__svg__SVGSVGElement__currentTranslate" class="attribute"><b>currentTranslate</b><span class="idl-type-parenthetical"> (readonly <a class="idlinterface" href="coords.html#InterfaceSVGPoint">SVGPoint</a>)</span></dt> <dd class="attribute"> <div> On an <a>outermost svg element</a>, the corresponding translation factor that takes into account user "magnification". +<p>The value of a transform property on the <a>outermost svg element</a> does not affect the value of this attribute.</p> + <p>When accessed on an <a>'svg'</a> element that is not an -<a>outermost svg element</a>, it is undefined what behavior -this attribute has. +<a>outermost svg element</a>, this attribute must return an SVGPoint at the coordinates (0, 0). </p> </div> </dd> </dl> </dd> <dt class="operations-header">Operations:</dt> <dd>
Received on Monday, 10 June 2013 09:35:12 UTC