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)
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Timothy Hatcher
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)
<rdar://problem/5712833>
Alexander Pavlov (apavlov)
This will break the computed style trace implemented by pfeldman@chromium.org. I will defer the decision to him.
Alexis Menard (darktears)
Querying shorhands from getComputedStyle now works. Maybe it's time to revisit the problem.
Pavel any thought?
Rob Colburn
Seems confusing when matching to style-tracing https://bugs.webkit.org/show_bug.cgi?id=20691
Brian Burg
On trunk, whether shorthands are used follows the original style rules. This is because we link back to the rules inside the resource.