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)
Core
SVG
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
Comment 1•7 years ago
|
||
This line has to return aSources[0] instead of nullptr:
https://searchfox.org/mozilla-central/rev/b7e3ec2468d42fa59d86c03ec7afeb209813f1d4/gfx/src/FilterSupport.cpp#795
And these two tests need to be updated for the new behavior:
https://searchfox.org/mozilla-central/source/layout/reftests/svg/filters/feMorphology-radius-zero-01.svg
https://searchfox.org/mozilla-central/source/layout/reftests/svg/filters/feMorphology-radius-zero-02.svg
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 2•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → sebastianzartner
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D63958
Assignee | ||
Comment 4•5 years ago
|
||
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)
Comment 6•5 years ago
|
||
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
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1a03f675e101
https://hg.mozilla.org/mozilla-central/rev/51ce5f13df5c
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox75:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
Assignee | ||
Comment 9•5 years ago
|
||
Thank you for merging the changes, Markus!
Sebastian
You need to log in
before you can comment on or make changes to this bug.
Description
•