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

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