From:  "Peter Weilbacher" <newsspam@weilbacher.org>
Date:  22 Nov 2005 06:47:40 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.layout
Subject:  

Re: Background color for SVG

NNTP-Posting-Host:  p54BF93DA.dip0.t-ipconnect.de

On Mon, 21 Nov 2005 19:53:13 UTC, Ian Hickson wrote:

> On Mon, 21 Nov 2005, Peter Weilbacher wrote:
> >
> > I wonder if it is possible to access the background color at the place 
> > of a SVG graphic in nsSVGCairoCanvas.cpp.
> > The reason behind this is that due to the way the display APIs under 
> > OS/2 work I need to "clear" the area that is going to be used for the 
> > SVG display. Currently, I just fill it with white, but using the 
> > background color of the  (or the browser default if none is set) 
> > would be nicer.
> 
> Isn't the SVG supposed to overlay whatever is behind it? e.g. SVG on top 
> of HTML would overlay that HTML?

I don't know what it should do but if there are transparent parts in the
SVG it displays with the default browser background (white in most 
cases, light grey on my setup) on SeaMonkey (with cairo) under Linux. I 
thought that was what it was supposed to do. Examples of this are
   http://www.croczilla.com/svg/samples/linestroke/linestroke.xml
and
   http://www.croczilla.com/svg/samples/xbl-shapes2/xbl-shapes2.xml
-- 
Greetings,                                                             ^
   Peter.