Chris Lilley wrote:
In SVG 1.2 there is a viewport-fill property to do pretty much what pagecolor seems to be doing. http://www.w3.org/TR/SVGMobile12/painting.html#viewport-fill-property
Notice (Example: 11_03.svg) the difference between that and a 100% rect, when the aspect ratio of the viewBox and the aspect ratio of the canvas are different.
The usual hack to cover that in SVG 1.1 is to have your background rect be something like
<rect x="-200%" y="-200%" width="500%" height="500%" />
which covers a modest amount of zooming out as well.
Thanks Chris, good to know! From the above, we know SVG allows us a coloured background. Since most of us don't want to read specs when drawing, how do you recommend the budding SVG web-site artist go about configuring Inkscape to take advantage of this in the easiest manner possible?
There seems to be different zooming implementations in Mozilla Firefox 2.x and Konqueror 3.5.x. It is fairly easy to enlarge the entire drawing using Konqueror. I've used it many times to enlarge an SVG drawing, then right-clicked and selected Save as PNG, which I then could use in word processors or presentations which didn't support SVG. Mozilla Firefox zooming seems to work on some elements and not on others, but maybe I'm doing something wrong. Do you know more about the zooming capabilities of different browsers - are there any rules for the artist?
Cheers, Haakon