mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Implement <feComposite> SVG filter
This commit is contained in:
parent
bbfc3a0f5e
commit
a00e7cb20b
Notes:
github-actions[bot]
2025-09-30 21:34:29 +00:00
Author: https://github.com/tcl3
Commit: a00e7cb20b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5744
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/konradekk
15 changed files with 303 additions and 0 deletions
4
Tests/LibWeb/Ref/expected/svg/composite-filter-ref.html
Normal file
4
Tests/LibWeb/Ref/expected/svg/composite-filter-ref.html
Normal 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>
|
||||
12
Tests/LibWeb/Ref/input/svg/composite-filter.html
Normal file
12
Tests/LibWeb/Ref/input/svg/composite-filter.html
Normal 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>
|
||||
|
|
@ -376,6 +376,7 @@ SVGDescElement
|
|||
SVGElement
|
||||
SVGEllipseElement
|
||||
SVGFEBlendElement
|
||||
SVGFECompositeElement
|
||||
SVGFEFloodElement
|
||||
SVGFEGaussianBlurElement
|
||||
SVGFEImageElement
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue