add implementation for Path2D addPath method (#37838)

Add implementation for Path2D addPath method
Spec:
https://html.spec.whatwg.org/multipage/canvas.html#dom-path2d-addpath

Testing: WPT test -
`tests/wpt/tests/css/geometry/DOMMatrix2DInit-validate-fixup.html`
Fixes: #37695

---------

Signed-off-by: Lloyd Massiah <artmis9@protonmail.com>
Signed-off-by: arthmis <artmis9@protonmail.com>
This commit is contained in:
arthmis 2025-08-09 01:06:20 -04:00 committed by GitHub
parent 6471587fb4
commit 86d7f4c793
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 57 additions and 83 deletions

View file

@ -287,6 +287,7 @@ interface Path2D {
constructor();
constructor(Path2D other);
constructor(DOMString pathString);
undefined addPath(Path2D path/*, SVGMatrix? transformation*/);
[Throws]
undefined addPath(Path2D path, optional DOMMatrix2DInit transform = {});
};
Path2D includes CanvasPath;