Re: [fxtf-drafts] [geometry] DOMMatrixReadOnly string init depends on backwards compatibility syntax

So after reading the old thread, the argument was not to be compatible with scripts using `SVGMatrix`, but being able to pass in `transform` attribute from SVG to new scripts using `DOMMatrix`.

I think arbitrary SVG content can still be supported in new scripts if we only support CSS syntax by using `getComputedStyle`.
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5159 shows that there is currently lack of interop between Chromium and Gecko -- Chromium throws for (3), Gecko throws for (1) and (4).

Also it appears that neither browser supports `transform="rotate(5deg)"` in SVG, so that parser would need to be changed in implementations if `DOMMatrix` is to use the SVG transform parser, to not break web content that relies on `new WebKitCSSMatrix('rotate(5deg)')` to work.

In conclusion, I think `DOMMatrix` right now seems better off using CSS 'transform' rules.

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/149#issuecomment-300796100 using your GitHub account

Received on Thursday, 11 May 2017 13:53:36 UTC