On 9/10/07, Chris Lilley <chris@...214...> wrote:
On Monday, September 10, 2007, 10:04:00 PM, Haakon wrote:
HME> 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.
HME> Thanks Chris, good to know! From the above, we know SVG allows us a HME> coloured background. Since most of us don't want to read specs when HME> drawing, how do you recommend the budding SVG web-site artist go about HME> configuring Inkscape to take advantage of this in the easiest manner HME> possible?
I was more noting it for future reference - its an SVG 1.2 feature, which means that to date, only mobile phones (and Opera 9.5 alpha, i believe) support it.
For now, the rectangle hacks are more dependable in deployed content.
Not sure if we're using the 1.2 version or what, but if you do file>doc properties theres a background color option on the page tab under general.