Closed
Bug 407305
Opened 18 years ago
Closed 16 years ago
Transparent SVG prints with grey background when "print background" is enabled
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: base12, Unassigned)
References
()
Details
Attachments
(1 file)
27.99 KB,
image/png
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007120602 SeaMonkey/2.0a1pre Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007120602 SeaMonkey/2.0a1pre
If Print Background is enabled, a transparent SVG is shown in Print Preview with a grey background and is also printed with the grey background.
Reproducible: Always
Steps to Reproduce:
1.Go to http://www.nd.edu/~fboze/indextest.shtml
2.Do a Print Preview and make sure that print background is enabled.
3.Print the page.
Actual Results:
The SVG is displayed in Print Preview with a grey background. The grey background can be seen on the printed page.
Expected Results:
The background color should be the color of the Web page, in this case white.
I've modified the page to do a bit of an experiment. The SVG is embedded in the page by means of the <object> element. I added a .png that has a transparent center section, also using the <object> element. Only the SVG prints with a grey background.
Interestingly, when the SVG is displayed in the browser without being embedded in a Web page, the SVG prints without a grey background. It also doesn't matter whether I use <object> or <embed>; both result in a grey background for the SVG.
Here are the URLs for the two images used in the page.
http://www.nd.edu/~fboze/banner.svg
http://www.nd.edu/~fboze/transgrad.png
Comment 2•18 years ago
|
||
I don't see a grey background on linux
Assignee: general → nobody
Component: General → Printing
Product: Mozilla Application Suite → Core
QA Contact: general → printing
I've attached a screen capture of the Print Preview window to illustrate the problem. The page prints the same way as the preview.
The same thing happens on two different computers, with different graphics cards and different printers, and with with two different profiles
Updated•18 years ago
|
Summary: Transparent SVG prints with grey background → Transparent SVG prints with grey background when "print background" is enabled
Comment 5•17 years ago
|
||
Confirmed in Firefox 3.0.3 running under Windows XP:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
If "Print Background (colors & images)" is enabled, an SVG <object> will be given a grey background in Print Preview, and this manifests on the final print as well. The grey background is not affected by the settings of "Options > Content > Colors > Text and Background".
If "Print Background (colors & images)" is DISABLED, an SVG <object> will still be given an opaque background matching the white of the paper in Print Preview, even when the SVG has no background and is properly rendered transparent outside of Print Preview. The opaque background manifests on the final print as well.
Comment 6•16 years ago
|
||
I can confirm this bug on Firefox 3.0.6 on Linux and Windows. I even tried with Firefox 3.1b2 (Windows) with the same result.
I made a very simple example to reproduce the bug:
1. Go to http://miklp.free.fr/fichiers/testSvg.html
2. Go to File - Print and check "Print Background Colors" in the options
3. Print (as a PDF or on your printer)
Result: a gray background square is drawn behind the star.
Note: I made the SVG image using Inkscape 0.46 and it does have a transparent background (and this can be confirmed *viewing* (not printing) the web page in Firefox).
I would say this is a duplicate of bug 445912 because the gray background behaviour is the same, even though that bug is for HTML in iframes.
Comment 9•16 years ago
|
||
This should be fixed by bug 504269 now.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•