LibWeb: Implement <feComposite> SVG filter

This commit is contained in:
Tim Ledbetter 2025-08-06 13:27:50 +01:00 committed by Tim Ledbetter
parent bbfc3a0f5e
commit a00e7cb20b
Notes: github-actions[bot] 2025-09-30 21:34:29 +00:00
15 changed files with 303 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<!DOCTYPE html>
<svg width="110" height="110" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="100" height="100" fill="green" />
</svg>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<link rel="match" href="../../expected/svg/composite-filter-ref.html" />
<svg width="110" height="110" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="compositeFilter">
<feFlood flood-color="green" result="greenFill" />
<feComposite in="greenFill" in2="SourceGraphic" operator="in" />
</filter>
</defs>
<rect x="10" y="10" width="100" height="100" fill="red" filter="url(#compositeFilter)" />
</svg>

View file

@ -376,6 +376,7 @@ SVGDescElement
SVGElement
SVGEllipseElement
SVGFEBlendElement
SVGFECompositeElement
SVGFEFloodElement
SVGFEGaussianBlurElement
SVGFEImageElement