Bug 43184 - WebKitCSSMatrix behaves differently on iOS 4.0 from Safari 5.0
Summary: WebKitCSSMatrix behaves differently on iOS 4.0 from Safari 5.0
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2010-07-29 02:35 PDT by Theis Mackeprang
Modified: 2010-08-03 11:10 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Theis Mackeprang 2010-07-29 02:35:49 PDT
There is a bug in the JavaScript WebKitCSSMatrix object; the following example explains:

var A = new WebKitCSSMatrix();
var B = new WebKitCSSMatrix();
var C = A.multiply(B);
Result on Mobile Safari:
C = B.A
Result on Desktop Safar:
C = A.B

Notice that B.A is calculated different than A.B, and therefore the result is not likely to be the same!
Comment 1 Alexey Proskuryakov 2010-08-02 07:14:54 PDT
I think that this was an intentional change, see bug 38337. Apparently, this change hasn't been picked by iPhone version of WebKit yet - but it's not appropriate to discuss iPhone WebKit here, since it doesn't build from webkit.org sources.

> Notice that B.A is calculated different than A.B, and therefore the result is not likely to be the same!

One can multiply two known matrices to see what version of multiply() is implemented.
Comment 2 David Kilzer (:ddkilzer) 2010-08-03 11:08:43 PDT
<rdar://problem/7781582>
Comment 3 David Kilzer (:ddkilzer) 2010-08-03 11:10:09 PDT
Marking as RESOLVED/INVALID since we're tracking merging the fix for Bug38337 as part of <rdar://problem/7781582> for iOS.  Thanks!