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

Re: What does viewBox really do?

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Sun, 23 Jun 2002 22:59:58 +0200
Message-ID: <3D1636CE.1070402@pinkjuice.com>
To: www-svg@w3.org
CC: vincent.hardy@eng.sun.com, palewis@adobe.com

rbw@polyglotinc.com wrote:


> HOWEVER, neither Batik-1.1.1 nor Adobe 3.0 plugin viewers agree.

[...]

> <?xml version="1.0" ?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
>     "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> 
> <svg xmlns="http://www.w3.org/2000/svg"
>      viewBox="0 0 850 1100" height="11in" width="8.5in">
> <line stroke-width="10" stroke="yellow" x1="0" y1="20" x2="1in"    
> y2="20"/>
> <line stroke-width="10" stroke="orange" x1="0" y1="30" x2="100"    
> y2="30"/>
> <line stroke-width="10" stroke="green"  x1="0" y1="40" x2="100px" y2="40"/>
> </svg>


In Batik, the whole thing is placed more to the right, and the size 
changes with resizing of the window;
but with ASV, it's all the way to the left, and resizing does not change 
the size of the graphic.


http://www.pinkjuice.com/temp/SVG/vb.png


Tobi



-- 
http://www.pinkjuice.com/
Received on Sunday, 23 June 2002 16:58:56 GMT

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