:where() - Remove the specificity of ANY selector with this pseudo-class

The new :where() pseudo-class is the brother of :is(), which I looked at not to long ago. Unlike :is(), anything inside of it has [id14486609|*no] impact* on specificity. That got me thinking... I mean, that means we can make ANY selector we want have zero specificity by sticking it inside a :where()! Is that a terrible idea, would it work well for defaults that we want to overwrite later on? Let me know what you think in the comments. 🔗 Links ✅ More info on specificity: ✅ My video on :is() - ✅ More information on :where() and :is() - :where#comparing_where_and_is ⌚ Timestamps 00:00 - Introduction 01:23 - the problem is :is() 03:26 - using :where() 04:26 - specificity battles 07:06 - crea ... #Kevin_Powell #css #front-end #frontend #html #tutorial #css_pseudo-class #css_pseudo_class #where_selector 20210513 pvH35ZFPbc4
Back to Top