Add tests for (#282), copied/regenerated from librsvg-2.42

(#282) - Don't reuse the input surface for painting feComposite's output

feComposite tried to take a shortcut if one of its inputs is an
existing surface, by painting its output to that same surface.
However, the overall filter may want to reuse the original surface
unchanged.  This was causing drop shadows, done like Inkscape's, to be
mis-painted.

GNOME/librsvg#282
parent d2cf5f44
Pipeline #14937 failed with stages
in 27 minutes and 43 seconds
<svg width="48" height="48" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="filter22" color-interpolation-filters="sRGB">
<feFlood flood-color="rgb(0,0,0)" flood-opacity=".5" result="flood"/>
<feComposite in="flood" in2="SourceGraphic" operator="in" result="composite1"/>
<feGaussianBlur in="composite1" result="blur" stdDeviation="2"/>
<feOffset dx="0" dy="2" result="offset"/>
<feComposite in="SourceGraphic" in2="offset" result="composite2"/>
</filter>
</defs>
<circle cx="24" cy="24" r="20" fill="#EA4335" filter="url(#filter22)"/>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment