[Webkit-unassigned] [Bug 139281] feConvolveMatrix does not work correctly when it is defined in the <defs> section and referenced by an svg element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 27 13:18:48 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=139281
Xiaolong Li <lxlstudent at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lxlstudent at gmail.com
--- Comment #2 from Xiaolong Li <lxlstudent at gmail.com> ---
The issue happens when defining a filter inside an <svg> element and directly reference/apply it on the <svg> element itself. In this case, Safari seems to "over-apply" the effect, and one guess is that it may have applied the effect twice.
This issue doesn't appear in Chrome or Firefox. I also checked SVG spec and this is a legal structure.
If I move the filter attribute to a sub-element of the <svg>, then it works correctly.
Here is an example in CodePen demonstrating this. Opening it in Safari/Firefox/Chrome to see the difference: https://codepen.io/xiaolong-li/pen/YzNMZpM
I found an existing bug (https://bugs.webkit.org/show_bug.cgi?id=139281) that may be related to this, but not sure.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210427/eca9c736/attachment-0001.htm>
More information about the webkit-unassigned
mailing list