[Webkit-unassigned] [Bug 242219] Too many filters causes image to no longer render

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 30 17:35:20 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=242219

--- Comment #1 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
This is a known limitation in WebKit. For SVGFilter, the number of total effects can't exceed 100. This number includes the SourceGraphic (which is the target element we apply the filter to). See this statement:

    if (!success || expression.size() > maxTotalNumberFilterEffects)
        return std::nullopt;

in SVGFilter::buildExpression where maxTotalNumberFilterEffects is defined as

static constexpr unsigned maxTotalNumberFilterEffects = 100;

So I am not sure. We could remove this limitation. But is there any webpage which uses more than 100 effects in an SVGFilter?

Even the attached test case is just a stress test case. It creates 100 feGaussianBlur with the same parameters and add them to the filter.

-- 
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/20220701/21458163/attachment-0001.htm>


More information about the webkit-unassigned mailing list