Closed Bug 768362 Opened 12 years ago Closed 8 years ago

Clipped SVG objects with assigned filter are displaced at printout (but okay in print preview)

Categories

(Core :: Graphics, defect)

7 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: Christian.Rattner, Unassigned)

References

Details

(Keywords: regression, testcase, Whiteboard: [gfx-noted])

Attachments

(3 files)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20100101 Firefox/13.0.1
Build ID: 20120614114901

Steps to reproduce:

<!DOCTYPE html>
<html>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
  <defs>
    <filter id="filter" x="0" y="0">
      <feGaussianBlur stdDeviation="5" />
      <feOffset dx="5" dy="5" />
    </filter>
  </defs>
  <rect x="-45" y="-45" width="90" height="90" fill="grey" filter="url(#filter)" />
  <rect x="-45" y="-45" width="90" height="90" fill="yellow" stroke="black" />
</svg>

</body>
</html>

Objects must be clipped for this bug!



Actual results:

FF13/XP:
Print > Preview: Shows what specified.
Print: Rect with blur filter is displaced. Additionally a surrounding dark frame appears.

FF3/XP:
Print > Preview: Shows what specified.
Print: Prints what specified.


Expected results:

Display, print preview and print should be identically.
Component: SVG → Printing: Output
Actually, this is best in the SVG component. It's not likely to get much love over in the Printing component, and the underlying cause is probably an SVG bug.
Component: Printing: Output → SVG
Attached file another testcase
Another testcase from http://forums.mozillazine.org/viewtopic.php?p=12130901#p12130901 that's more visual.

In addition, there is a regression since FF7.

m-c
good=2011-05-25
bad=2011-05-26
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=836aa9658341&tochange=831f8e040f38

Suspected bug:
Bug 614732 - Implement SVG display lists
Blocks: 614732
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression, testcase
Version: 13 Branch → 7 Branch
(In reply to Loic from comment #3)
> Suspected bug:
> Bug 614732 - Implement SVG display lists

This can't have been from bug 614732, at least not from the changes in that pushlog range. The two pushes in that range don't make any real code changes.
No longer blocks: 614732
Summary: Clipped SVG objects with assigned filter are displaced at printout → Clipped SVG objects with assigned filter are displaced at printout (but okay in print preview)
Regression window
Good:
http://hg.mozilla.org/mozilla-central/rev/4ae5181b22f7
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110525 Firefox/7.0a1 ID:20110525072732
Bad:
http://hg.mozilla.org/mozilla-central/rev/acb4e51fa8a6
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0a1) Gecko/20110525 Firefox/7.0a1 ID:20110525074326
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=4ae5181b22f7&tochange=acb4e51fa8a6

Regressed by: Bug 562746
Component: SVG → Graphics
Is this still reproducible in the current Firefox Nightly?
Has Regression Range: --- → yes
Has STR: --- → yes
Flags: needinfo?(Christian.Rattner)
Whiteboard: [gfx-noted]
Fixed since FF18:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=b2867d82dcad&tochange=08d435dedc7f
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(Christian.Rattner)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: