From:  "Peter Weilbacher" <>
Date:  23 Nov 2005 08:23:37 Hong Kong Time

Re: Background color for SVG


On Tue, 22 Nov 2005 21:33:16 UTC, T Rowley wrote:

> On 11/22/05 5:20 AM, Peter Weilbacher wrote:

> > Let me take a look at nsSVGOuterSVGFrame, but I guess for now I just 
> > query the prefs for the background color and use that to fill the cairo 
> > surface.
> That's not really a route you want to go down, as it violates the 
> specification and means that on os/2 SVG will act differently to all the 
> other platforms mozilla runs on.

Well, for the moment I have the choice between random memory sections 
appearing on the screen and violating the spec. ;-) If at some point it 
turns out that the cairo port can be fixed I will take out the hack from
Mozilla so that it works properly on OS/2, too. For now this is just to 
get out an unofficial build anyway, the official builds for 1.8 on OS/2 
will probably not contain SVG support.

> > For some reason the printing path doesn't work, either. It creates the 
> > image surface correctly but nothing appears in the printout (or on the 
> > screen if I try to use that for screen display). This is probably 
> > connected to the offscreen surface stuff, too. I have to debug that at 
> > some point.
> Does printing of RGBA images work on os/2?

It depend a lot on the printer driver how well they come out but with 
most drivers something does appear.

But thanks for the hints, I will discuss them further with the OS/2 
Greetings,                                                             ^