Open Bug 801794 Opened 12 years ago Updated 2 years ago

SVGs print shifted

Categories

(Core :: Printing: Output, defect)

7 Branch
x86_64
Windows 7
defect

Tracking

()

People

(Reporter: charitha.sathkumara, Unassigned)

References

Details

(Keywords: regression)

Attachments

(3 files)

Attached file firefoxPrintBug.zip
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4

Steps to reproduce:

Attempted to print out a page where a PNG image is on top of a SVG image. Several trials produced the same result, as follows:

Attempted with "Ctrl + P", "Print" option in menu, and via the "Print" button in Print Preview. 
Attempted different scaling settings, and after both checking and unchecking the "Print Background (colors & images)" option in Page Setup.
Attempted printing to both a physical printer and virtual printers (eg: Microsoft XPS Writer, PDF Complete).
Attempted printing the full page, and only the selection.

Attaching a sample HTML file where the issue can be reproduced by printing.



Actual results:

The printed page had positioned the SVG shifted to the bottom right from its original location.


Expected results:

The SVG image should have printed as it was seen on the Print Preview, instead of printing shifted away from its original location.
Component: Untriaged → Printing: Output
Product: Firefox → Core
In this test case, the printed image has the PNG image was shifted 80px right with CSS "left" attribute and 80px down with the CSS "top" attribute. A duplicated SVG is visible.
The bug can be seen in this test case. The original image was printed, but the SVG can be seen shifted on its own.
Attachment #671545 - Attachment mime type: text/plain → application/zip
Regression window
Good:
http://hg.mozilla.org/mozilla-central/rev/dad825159748
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110527 Firefox/7.0a1 ID:20110527011902
Bad:
http://hg.mozilla.org/mozilla-central/rev/04e8d0b481bc
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110527 Firefox/7.0a1 ID:20110527081111
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dad825159748&tochange=04e8d0b481bc

Regressed by Bug 562746
Blocks: 562746
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Version: Trunk → 7 Branch
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: