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

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 May 2017 08:03:48 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-300713781-1494489827-sysbot+gh@w3.org>
@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:

It seems in Safari TP for `WebKitCSSMatrix`, it uses 6 digits and no sci-not:

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:50:21 UTC