CSSLint/csslint

Re: Disallow universal selector

j9t opened this issue · 0 comments

j9t commented

“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.)