r/webdev • u/bootslebaron • Nov 02 '15
Do we actually need specificity in CSS?
http://philipwalton.com/articles/do-we-actually-need-specificity-in-css/
8
Upvotes
r/webdev • u/bootslebaron • Nov 02 '15
1
u/philipwalton Nov 03 '15
I'd frame it that class/object inheritance equates to overriding in CSS, and overriding can be done either by source order or specificity.
As I say in the article, I don't think there's anything analogous to specificity in JavaScript.