W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > May 2017

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 May 2017 13:53:29 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-300796100-1494510808-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 November 2018 00:45:58 UTC