W3C home > Mailing lists > Public > www-svg@w3.org > June 2007

precise location of % scaled symbols

From: ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Date: Sun, 17 Jun 2007 08:39:28 +0100
Message-Id: <31E774CB-C17F-4F2C-8569-3E43A23BDCD5@btinternet.com>
To: SVG List <www-svg@w3.org>

precise location of % scaled symbols

mozilla, opera, safari and amaya each display the attached example  
uniquely.

This arose as I could not find an easy way to accurately place scaled  
symbols using % on a map here:
http://www.peepo.co.uk/temp/moulin/moulin070616.svg

each of these four user agents displaces the symbols uniquely.

regards

Jonathan Chetwynd

variation based on:
http://www.w3.org/TR/SVG11/images/struct/Use01.svg

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
 >

<defs>
<symbol id="myRect" viewBox="0 0 200 1000">

<rect width="30" height="50" />

</symbol>

</defs>

<rect x="165" y="180" width="65" height="20" fill="#dddddd"/>

<use xlink:href="#myRect" x="20" y="185" width="30%" height="20%"  
fill="#ff0000"/>

</svg>
Received on Sunday, 17 June 2007 07:39:41 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:37 GMT