Bug 14397 - Web Inspector: Computed Style section should collapse to shorthands when applicable
Summary: Web Inspector: Computed Style section should collapse to shorthands when appl...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 523.x (Safari 3)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 13658 17870
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-25 14:29 PDT by Adam Roben (:aroben)
Modified: 2014-12-14 19:50 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.