Re: Mozilla clips the edges of blurred shapes

Chris Lilley <[email protected]>
Newsgroups gmane.comp.mozilla.devel.svg
Organization W3C
Message-ID <[email protected]>
On Tuesday, December 2, 2008, 9:00:14 AM, vladimir wrote:

vdgc> Hi guys,

vdgc> I've noticed that Mozilla clips the edges of SVG shapes that have been
vdgc> applied a blur filter. It seems like the renderer creates some kind of
vdgc> a bounding box around the shape, but fails to extend it after the blur
vdgc> is applied, so the blurred edges of the shape appear clipped.

vdgc> Here is a small test SVG to show the problem (generated with Inkscape,
vdgc> exported as "plain SVG"):
vdgc> http://valan.net/tmp/mozilla/clipped_edges_of_blurred_shapes.test.svg

(By the way, that document is being served as text/plain, so Firefox (and other conformant implementations) display the source code. Could you fix? I downloaded it and viewed it locally.)

vdgc> Here is the Inkscape output, which looks fine:
vdgc> http://valan.net/tmp/mozilla/clipped_edges_of_blurred_shapes.inkscape-output.png

That is the correct rendering, and is also what Opera and Batik (for example) do; so its correct and its implemented.

vdgc> Here is the Mozilla (FF 3.1 beta) output where the four edges appear
vdgc> clipped:
vdgc> http://valan.net/tmp/mozilla/clipped_edges_of_blurred_shapes.mozilla-output.png


Yes, that's incorrect.

-- 
 Chris Lilley                    mailto:[email protected]
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.