Closed Bug 1432250 Opened 7 years ago Closed 5 years ago

feMorphology with zero radius should output the input image

Categories

(Core :: SVG, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla75
Tracking Status
firefox75 --- fixed

People

(Reporter: sfraser_bugs, Assigned: sebo)

Details

Attachments

(2 files)

In Firefox, an feMorphology with radius=0 disables the filter (output is transparent), which is what SVG 1.1 specified. In SVG 2, that has changed so that radius=0 should now behave like a no-op, outputting the input image. Testcase at https://codepen.io/smfr/pen/mpozPz
Priority: -- → P3
Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED

Thank you for accepting my patch, Markus! I don't have the rights to land it, so can you please do that for me?

Sebastian

Flags: needinfo?(mstange)

Sure - I'll kick off a try build first, though.

Flags: needinfo?(mstange)
Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/1a03f675e101 Output the input image for zero or negative radii for <feMorphology>. r=mstange https://hg.mozilla.org/integration/autoland/rev/51ce5f13df5c Updated tests for input image output for zero or negative radii for <feMorphology>. r=mstange
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75

Thank you for merging the changes, Markus!

Sebastian

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: