Closed Bug 1571649 Opened 5 years ago Closed 5 years ago

Inactive CSS - display warnings when 'display:none' is used for the other rules

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

Desktop
All
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: cfogel, Unassigned)

References

(Blocks 2 open bugs)

Details

Test Case:
data:text/html,<style>body{display:none; width:30px; height: 30px;}</style>test

Enhancement suggestion:

  • have the width, height rules (and almost any other used rule) display inactive warnings;
Priority: -- → P3

Thanks for filing.
Martin Balfanz and I discussed about this bug and agreed to close it as WONTFIX.
The reason is that the Inactive CSS feature was built to help webdevs resolve potential CSS issues with things that are common pitfalls. Adding display:none to an element is a common way to toggle it in the page. It's very likely not a mistake that the developer will try to solve.
So, greying out everything in the rule-view because an element has been hidden is not very useful for developers. In fact it might make the whole feature really annoying to people.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.