Closed Bug 1537670 Opened 5 years ago Closed 3 years ago

Feature: Hover over a CSS property/selector to highlight nodes impacted by it in page

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 942176

People

(Reporter: victoria, Unassigned)

References

Details

We want to increase the association between CSS rules/declarations and the effect they have in the page by adding an in-page highlight effect when hovering over the relevant CSS.

This could apply to a lot of different declarations. It would be great to start with these:

selector (highlight all matching elements)
margin (use yellow color from box model)
padding (use purple color from box model)

Other possibilities:

font-family - highlight all text using the active font
display:flex - show flex container overlay
width/height
media queries
alignment properties
etc

As part of this we'll want a hover background color for selectors/declarations. It should match the markup hover highlight.

This is somewhat related to https://bugzilla.mozilla.org/show_bug.cgi?id=1537666

Severity: normal → enhancement
See Also: → 1537666
Priority: -- → P3

This looks very much like bug 942176 (and the bugs blocking it) to me. Not all things mentioned here are covered there yet, though I could create more blocking bugs for them.
Victoria, do you agree that this is a duplicate of the other bug?

Sebastian

Flags: needinfo?(victoria)

Ah yes, good point, that is very similar! I can write a comment in the other bug to mention the extra cases.

Flags: needinfo?(victoria)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.