[Webkit-unassigned] [Bug 172114] Align WebKitCSSMatrix stringifier with spec for DOMMatrix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 15 09:34:29 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172114

Chris Dumez <cdumez at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simon.fraser at apple.com

--- Comment #1 from Chris Dumez <cdumez at apple.com> ---
(In reply to Simon Pieters from comment #0)
> See
> https://github.com/w3c/fxtf-drafts/issues/120
> https://github.com/w3c/fxtf-drafts/pull/148
> https://github.com/w3c/web-platform-tests/pull/5885
> 
> In WebKit the numbers are serialized always with 6 digits, per spec it
> should use JS's ToString.
> 
> Fail	WebKitCSSMatrix stringifier: identity (2d)	assert_equals: expected
> "matrix(1, 0, 0, 1, 0, 0)" but got "matrix(1.000000, 0.000000, 0.000000,
> 1.000000, 0.000000, 0.000000)"

Ok, it seems Firefox does this. Seems like a good thing to fix.

> 
> 
> NaN and Infinity values should cause an InvalidStateError exception in the
> stringifier.
> 
> http://software.hixie.ch/utilities/js/live-dom-viewer/saved/5168
> 
> <!DOCTYPE html>
> <script>
> var m = new WebKitCSSMatrix();
> m.a = NaN;
> m.b = Infinity;
> m.c = -Infinity;
> w(String(m));
> </script>
> 
> log: matrix(nan, inf, -inf, 1.000000, 0.000000, 0.000000)

That part, I am less sure of. No other browser seems to throw and I expect compatibility risks if we started throwing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170515/dad1fc82/attachment.html>


More information about the webkit-unassigned mailing list