CSSLint / csslint

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

Re: Disallow universal selector #727

Open j9t opened 6 years ago

j9t commented 6 years ago

“Disallow universal selector” touches on a valid but practically irrelevant point (intentionally phrased strongly :): yes, universal selectors have an impact on performance, but no, this impact is too small to warrant banning an important coding option.

The main point against a ban of the universal selector is that their performance impact is negligible even with thousands of universal selectors; what makes the matter worse is that such ban cuts us off from a legitimate piece of CSS. (I myself have expanded on the issue in Performance of CSS Selectors Is Irrelevant, continued.)

From what I can tell, dropping this rule would be an improvement to CSSLint.

(Pardon the batch filing of requests and if I missed something else relevant for this rule.)