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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 15 05:30:32 PDT 2017


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

            Bug ID: 172114
           Summary: Align WebKitCSSMatrix stringifier with spec for
                    DOMMatrix
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zcorpan at gmail.com
                CC: cdumez at apple.com

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)"


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)


Related bugs:
https://bugs.webkit.org/show_bug.cgi?id=153675
https://bugs.webkit.org/show_bug.cgi?id=110001
https://bugs.webkit.org/show_bug.cgi?id=163505

-- 
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/7bfa0318/attachment.html>


More information about the webkit-unassigned mailing list