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

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Thu, 15 Jun 2017 06:11:12 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-308638531-1497507071-sysbot+gh@w3.org>
Indeed in https://github.com/w3c/fxtf-drafts/issues/122 the argument was made that the string argument should be dropped completely, but we can't because web compat requires it for `WebKitCSSMatrix`. But then `WebKitCSSMatrix` uses the strict CSS parser in implementations.

SVG2 already has APIs to directly return a `DOMMatrix` for an element, e.g.:

```
rect.transform.baseVal.consolidate().matrix
```
I think browsers still return `SVGMatrix` for those, but it's easy to convert them to a `DOMMatrix`:

```
DOMMatrix.fromMatrix(rect.transform.baseVal.consolidate().matrix)
```

@dirkschulze, ok to close this issue?


-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/149#issuecomment-308638531 using your GitHub account
Received on Thursday, 15 June 2017 06:11:19 UTC

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