Bug 22533 - different color for margin and padding in the Web Inspector
Summary: different color for margin and padding in the Web Inspector
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 13:26 PST by Vincent van den Heuvel
Modified: 2014-01-12 15:41 PST (History)
3 users (show)

See Also:


Attachments
Firebug element highlighting (236.54 KB, image/png)
2011-01-21 10:18 PST, Bart S.
no flags Details
Inspector element highlighting (178.45 KB, image/png)
2011-01-21 10:18 PST, Bart S.
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent van den Heuvel 2008-11-27 13:26:20 PST
It would be very nice to have a different color for margin and padding in the Web Inspector, like Firefox does (only mac style)
Comment 1 Bart S. 2010-02-02 10:32:02 PST
To add to this, it would be nice if nothing got additional borders (besides borders themselves changing color, so I know they belong to that element). It ends up making it less obvious what the boundaries of the element and its margin/padding are with the extra pixels around them. And it also makes it hard to see when an element does have a border specified.

This is my #1 pet-peeve about Inspector over Firebug. I never feel comfortable using it for visual things because the boundaries of things feel imprecise and ambiguous.
Comment 2 Bart S. 2011-01-21 10:18:39 PST
Created attachment 79757 [details]
Firebug element highlighting
Comment 3 Bart S. 2011-01-21 10:18:59 PST
Created attachment 79758 [details]
Inspector element highlighting
Comment 4 Bart S. 2011-01-21 10:19:51 PST
I just downloaded a new nightly build and am surprised this is still not addressed. I attached screenshots showing the difference between Firebug and Inspector's element highlighting. In Firebug, the yellow is a margin (in this case negative top margin) and the purple is the padding. The boundaries of the element and its margins/padding/border are much clearer with the different colors and not having Inspector's outlines that make the element look a pixel wider than it really is.
Comment 5 Bart S. 2011-01-21 10:25:28 PST
Comment on attachment 79757 [details]
Firebug element highlighting

(Just a minor FYI, the same element in this screenshot is highlighted as in attachment 79758 [details]. I accidentally took this screenshot with the <a> selected but the highlights are for <header> like in the other screenshot. I don't have the option to swap out this image in Bugzilla in case that adds confusion...)
Comment 6 BJ Burg 2014-01-12 15:41:14 PST
This is included in the new inspector. Cheers!