Bug 14397

Summary: Web Inspector: Computed Style section should collapse to shorthands when applicable
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement CC: apavlov, burg, idan, menard, pfeldman, robert.colburn+bugzilla
Priority: P2 Keywords: InRadar
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
Bug Depends on: 13658, 17870    
Bug Blocks:    

Adam Roben (:aroben)
Reported 2007-06-25 14:29:20 PDT
The computed style section should collapse multiple properties to shorthand properties when applicable. For instance: margin-bottom: 4px; margin-left: 0px; margin-right: 0px; margin-top: 0px; could be collapsed to: margin: 0px 0px 4px 0px;
Attachments
Timothy Hatcher
Comment 1 2007-06-26 05:37:38 PDT
This depends on bug 13658. This was working to some extent before (sans bug 13658), but I think that support was removed.
Adam Roben (:aroben)
Comment 2 2008-01-29 11:00:52 PST
Alexander Pavlov (apavlov)
Comment 3 2011-09-06 09:03:03 PDT
This will break the computed style trace implemented by pfeldman@chromium.org. I will defer the decision to him.
Alexis Menard (darktears)
Comment 4 2012-01-13 10:46:45 PST
Querying shorhands from getComputedStyle now works. Maybe it's time to revisit the problem. Pavel any thought?
Rob Colburn
Comment 5 2012-06-11 10:37:43 PDT
Seems confusing when matching to style-tracing https://bugs.webkit.org/show_bug.cgi?id=20691
Brian Burg
Comment 6 2014-12-14 19:50:33 PST
On trunk, whether shorthands are used follows the original style rules. This is because we link back to the rules inside the resource.
Note You need to log in before you can comment on or make changes to this bug.