[svgwg] SVGMatrix interface returns `SVGMatrix` for `multiply` (secondMatrix) (#1020)

Ahmad-S792 has just created a new issue for https://github.com/w3c/svgwg:

== SVGMatrix interface returns `SVGMatrix` for `multiply` (secondMatrix) ==
Hi Team,

While looking into failing WPT - https://github.com/web-platform-tests/wpt/blob/0ca8cfb9b7/svg/types/scripted/SVGMatrix-tentative.html (in Safari / WebKit) and noticed that it expects DOMMatrixInit (// In SVG 2 SVGMatrix is replaced by DOMMatrix.)

While I can't find anything in SVG2 specification about it and looking into other browsers:

Chromium: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/svg/svg_matrix.idl;l=38;drc=c21a17e574d2e0ac1c9e9570c641e70693662a1b

WebKit: https://searchfox.org/wubkat/rev/dd05eb230972a07f0240b959e6e22ca685ef3445/Source/WebCore/svg/SVGMatrix.idl#38

Firefox: https://searchfox.org/firefox-main/rev/dbe1fb5b33518694e8e4a230a0898c8064575828/dom/webidl/SVGMatrix.webidl#32

Only Firefox has it different and have:

SVGMatrix multiply(optional DOMMatrix2DInit secondMatrix = {});

I couldn't find interface definition in SVG2 specification to show `DOMMatrixInit` and I think this was reverted earlier - https://github.com/w3c/svgwg/issues/706 and we should align with SVG1.1.

Just wanted to raise and get input, where Chromium / WebKit should match Firefox or Firefox should change to others?

Thanks!

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1020 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 6 October 2025 13:13:30 UTC