[Webkit-unassigned] [Bug 16062] New: SVGMatrix multiply method is wrong way round.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 20 00:30:47 PST 2007


           Summary: SVGMatrix multiply method is wrong way round.
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: Macintosh
               URL: javascript:alert(function(){var g =
                    'g');g.setAttribute('transform', 'matrix(0 1 1 0 0 0)
                    translate(1 0)');var l =
                    g.transform.baseVal.getItem(0).matrix;var r =
                    g.transform.baseVal.getItem(1).matrix;var x =
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: drj at pobox.com

(In JavaScript) If A and B are each an SVGMatrix then A.multiply(B) multiplies
them.  According to my best reading of the spec the product should be AB. 
Safari computes BA. Firefox computes AB.  Opera (as far as I can tell) computes

URL is a bookmarklet that alerts the results of multiplying matrix(0 1 1 0 0 0)
by translate(1 0).  It should produce the 6 numbers: 0,1,1,0,0,1 (for example,
on Firefox).  Safari produces: 0,1,1,0,1,0.

There's more discussion at a blog article I wrote,
http://drj11.wordpress.com/2007/11/19/the-trouble-with-matrix-multiplication/ ,
but you probably don't need that.

If you think WebKit is right and Gecko is wrong, you can duke it out on the Moz
bug I made earlier: https://bugzilla.mozilla.org/show_bug.cgi?id=404221

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list