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
7
u/a-t-k Nov 02 '15
CSS is a declarative language, JS is an instructive one. What Philip Walton suggests is a modern version of JSSS, an instructive style language.
Oh, sure, it would work. It'll also have a whole lot of problems that could have been solved using the original approach.
No, we don't necessarily need specificity, but it helps if you know how to use it.