CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.77k stars 483 forks source link

margin: 0 padding: 0 #121

Open nzakas opened 13 years ago

nzakas commented 13 years ago

Too many declarations indicates a need for reset stylesheet.

nzakas commented 13 years ago

Too many = ?

frvge commented 8 years ago

If I understand the problem correctly, the idea is to count the occurences of both margin: 0 and padding:0 in a rule. If this is more than "x" times, warn that a reset.css / normalize,css could be beneficial. Maybe we can generalize this to "When a certain property is set more than X times, use a CSS system like OOCSS, SMACSS, etc to enhance the structure".