Re: [fxtf-drafts] [geometry] DOMMatrix stringifier behavior doesn't seem to match implementations

@AmeliaBR thanks for the examples for Infinity and NaN!

I missed to bring up on the call the precision issue. In #148 I defined it in terms of JS's `ToString`, so that means something like this:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5149

It seems in Safari TP for `WebKitCSSMatrix`, it uses 6 digits and no sci-not:
http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5150

None of the current browser implementations match CSSOM's serialization rule for numbers.

I think JS `ToString` is reasonable because it makes it *possible* to preserve precision in a roundtrip, if the CSS parser supports parsing into a `double` value for `DOMMatrix`/'transform' etc.

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

Received on Thursday, 11 May 2017 08:04:05 UTC