Bug 6653

Summary: CSSStyleDeclaration returns empty string when trying to access shorthand properties using JS accessors
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: DOMAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 6619    
Attachments:
Description Flags
Fix darin: review+

Anders Carlsson
Reported 2006-01-18 13:25:46 PST
When trying to access shorthand properties such as "border" and "padding" using style.border or style.padding, an empty string is returned
Attachments
Fix (2.63 KB, patch)
2006-01-18 13:35 PST, Anders Carlsson
darin: review+
Anders Carlsson
Comment 1 2006-01-18 13:35:26 PST
Darin Adler
Comment 2 2006-01-18 21:27:34 PST
Comment on attachment 5761 [details] Fix Looks fine. Why not always use getPropertyValue, though?
Anders Carlsson
Comment 3 2006-01-19 09:12:58 PST
The reason was the code that would check for a certain property and always use the pixel value
Note You need to log in before you can comment on or make changes to this bug.