Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why the warning "Selector specificity 0, 2, 0"?

My Visual Studio keeps displaying the following warning (I think it's actually the Web Essentials plugin that produces it) but I'm not really clear why this is a problem? Can some explain please?

enter image description here

PS, Yes I understand what specificity is and how to calculate it, I just don't know why a specificity of 0,2,0 is a problem?

like image 369
Liam Avatar asked Nov 15 '25 22:11

Liam


1 Answers

The above isn't the error message, it's standard hovering info when you move your mouse over a selector with WE. However, the problem you're facing is probably the same selector being specified twice in the same file.

like image 156
Etheryte Avatar answered Nov 18 '25 12:11

Etheryte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!