Summary: | -webkit-transform should have good initial value | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> | ||||||
Component: | CSS | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | simon.fraser | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Description
Dean Jackson
2008-07-11 04:55:46 PDT
It should return "none" in this case I think (as should an untransformed element). Created attachment 22329 [details]
Patch
This patch also fixes getComputedStyle() to return 'none' for elements with no tranform (previously, it would return an identity matrix).
Created attachment 22349 [details]
Updated patch (includes test changes)
Comment on attachment 22349 [details]
Updated patch (includes test changes)
Remove the braces from
+ if (!renderer || renderer->style()->transform().isEmpty()) {
+ return CSSPrimitiveValue::createIdentifier(CSSValueNone);
+ }
r=me
|