W3C home > Mailing lists > Public > www-svg@w3.org > February 2006

[SVGMobile12] Error in example

From: Reimer, Andreas <andreas.reimer@siemens.com>
Date: Fri, 10 Feb 2006 10:21:25 +0100
Message-ID: <188A278BFCF728479F840A945DC15E8503FB4C14@kstbm01a.ww010.siemens.net>
To: <www-svg@w3.org>
Dear List,
 
Andrew Emmons wrote:
 
< I think the example in 
<question  is  http://www.w3.org/TR/SVGMobile12/examples/activate.svg
<http://www.w3.org/TR/SVGMobile12/examples/activate.svg> . 

Yes, I posted the wrong link, thanks for correcting.
 
While technically correct this example (and the following one):
 
<svg id="root" viewBox="0 0 100 100" version="1.2" baseProfile="tiny">

<line x1="0" x2="100" y1="0" y2="100"/>

<rect id="r" transform="ref(svg)"

x="45" y="45" width="10" height="10"/>

</svg>

from:
http://www.w3.org/TR/SVGMobile12/coords.html#transform-ref
<http://www.w3.org/TR/SVGMobile12/coords.html#transform-ref> 
work better, if you set values for style, e.g.:

<svg id="root" viewBox="0 0 100 100" version="1.2" baseProfile="tiny">

<line x1="0" x2="100" y1="0" y2="100"
style="stroke:rgb(0,0,0);stroke-width:1"/>

<rect id="r" transform="ref(svg)"

x="45" y="45" width="10" height="10"/>

</svg>.

Regards,
Andreas Reimer
Received on Friday, 10 February 2006 09:21:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:53 UTC