[Webkit-unassigned] [Bug 40414] Fetching inline style gives different matrix for rotate(90deg) than getComputedStyle

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 10 09:37:33 PDT 2010


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





--- Comment #6 from Dirk Schulze <krit at webkit.org>  2010-06-10 09:37:33 PST ---
(In reply to comment #5)
> I don't know why getComputedStyle would return a different value in this case. Reopening this bug to figure out why fetching inline style gives a different answer.

The difference is not quite big matrix(1,77321e-16, 1, -1, 1,77321e-16, 0, 0) to matrix(0,000000, 1,000000, -1,000000, 0,000000, 0,000000, 0,000000). With different code paths:

getComputedStyle:
var parent = document.getElementById('parent');
var matrix = window.getComputedStyle(parent).webkitTransform;
alert(matrix);

inline style:
var firstMatrix = new WebKitCSSMatrix(document.getElementById('parent').style.webkitTransform);
alert(firstMatrix);

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



More information about the webkit-unassigned mailing list