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:    

Description Adam Roben (:aroben) 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;
Comment 1 Timothy Hatcher 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.
Comment 2 Adam Roben (:aroben) 2008-01-29 11:00:52 PST
<rdar://problem/5712833>
Comment 3 Alexander Pavlov (apavlov) 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.
Comment 4 Alexis Menard (darktears) 2012-01-13 10:46:45 PST
Querying shorhands from getComputedStyle now works. Maybe it's time to revisit the problem.

Pavel any thought?
Comment 5 Rob Colburn 2012-06-11 10:37:43 PDT
Seems confusing when matching to style-tracing https://bugs.webkit.org/show_bug.cgi?id=20691
Comment 6 Brian Burg 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.