Bug 13658

Summary: getPropertyValue on CSSComputedStyleDeclaration should return shorthand values
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: CSSAssignee: Alexis Menard (darktears) <menard>
Status: RESOLVED FIXED    
Severity: Enhancement CC: jlukas, menard
Priority: P3    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on: 74635, 74743, 75312, 75319, 75347, 75352, 75358, 75434, 75443, 75539, 75630    
Bug Blocks: 14397    
Attachments:
Description Flags
Test case none

Timothy Hatcher
Reported 2007-05-10 09:44:06 PDT
I have a change to the Web Inspector that smartly groups computed style properties under their short hand name. Except I rely on the engine's CSSComputedStyleDeclaration to give me a value if I pass it a shorthand name. Similar to how CSSMutableStyleDeclaration will generate a shorthand value if you pass in a shorthand property name. However, shorthands should not be in the enumerable property list (just like CSSMutableStyleDeclaration). See attached test case.
Attachments
Test case (443 bytes, text/html)
2007-05-10 09:45 PDT, Timothy Hatcher
no flags
Timothy Hatcher
Comment 1 2007-05-10 09:45:39 PDT
Created attachment 14472 [details] Test case Note, Firefox doesn't support this either. However, I don't think it would cause compatibility problems adding it to WebKit.
Mark Rowe (bdash)
Comment 2 2007-08-26 22:22:45 PDT
*** Bug 7703 has been marked as a duplicate of this bug. ***
Alexis Menard (darktears)
Comment 3 2012-01-10 08:46:09 PST
It's safe to close it. I guess all common shorthand values are correctly return now.
Note You need to log in before you can comment on or make changes to this bug.