The code in FEConvolveMatrix::platformApply does not make any use of the kernelUnitLength property on the filter. Code search did turn up any usage anywhere. I conclude that we have not implemented it.
(In reply to comment #0) > The code in FEConvolveMatrix::platformApply does not make any use of the kernelUnitLength property on the filter. Code search did turn up any usage anywhere. I conclude that we have not implemented it. That is correct. I think the current spec is a bit vague on how it should work. At least it was not clear to me how we could implement at the time I worked on SVG filters.
I can see now references to "kernelUnitLength": https://github.com/WebKit/WebKit/blob/717edcf5882531d38e55c9cd7929667af2b319a8/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.cpp#L34 https://github.com/WebKit/WebKit/blob/717edcf5882531d38e55c9cd7929667af2b319a8/Source/WebCore/platform/graphics/filters/FEConvolveMatrix.h#L41 Is it now implemented? If yes, can this bug be closed? Thanks!
Said? Is this now implemented?
No it is not implemented. See FEConvolveMatrixSoftwareApplier::apply() and notice that m_effect.kernelUnitLength() is not used.
Created attachment 460900 [details] smiley.jpeg
Created attachment 460901 [details] test case Two different filters are applied to the two images. FireFox is the only browser that renders the second image correctly.