With the recent launch of http://csslint.net , I am wondering how I built my style sheets in the past. The following method is the one I used recently:
h1 { font-size:20px } p { font-size:12px } h1 { color:green } p { color:grey; background-color:white } h1 { margin:0 } p { margin:0 0 5px }
The problem, according to linter, is that I declare the header selector over and over again. Of course, the reason is to maintain a logical separation between the types of rules. If I want to change colors, I would visit the region of colors. If I want to resize, I would visit dimensional areas.
Is CSSLint worried that I could be at risk of overwriting styles, thereby losing my meaning, or is there a performance issue related to how many blocks contribute to the overall presentation of the title elements?
Is it a bad practice or just a false alarm?
source share