Bug 40411 - CSS Transforms with wrong CSSMatrix
Summary: CSS Transforms with wrong CSSMatrix
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 02:47 PDT by Dirk Schulze
Modified: 2010-06-10 07:03 PDT (History)
1 user (show)

See Also:


Attachments
Test: gives back correct matrix (645 bytes, text/html)
2010-06-10 02:47 PDT, Dirk Schulze
no flags Details
Test: gives back identity (592 bytes, text/html)
2010-06-10 02:49 PDT, Dirk Schulze
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schulze 2010-06-10 02:47:04 PDT
It shouldn't make a difference, if CSS transforms is applied via the style attribute or the style element to an element in the DOM. And there is also no visible difference, but the style.webkitTransform is different.
On applying the transformation to the style attribute of the element, the CSSMatrix has correct results, applying the transformation via the style element gives back the identity matrix. I'll upload two examples. Bot shouldn't give back the identity matrix.
Comment 1 Dirk Schulze 2010-06-10 02:47:54 PDT
Created attachment 58348 [details]
Test: gives back correct matrix
Comment 2 Dirk Schulze 2010-06-10 02:49:39 PDT
Created attachment 58349 [details]
Test: gives back identity

Same example as the previous one, but setting CSS transforms for all div's in the style-element. Notice, that the visible results of both tests are the same.
Comment 3 Simon Fraser (smfr) 2010-06-10 07:03:19 PDT
element.style.webkitTransform just returns the inline style. You need to use getComputedStyle() to get the actual style.