: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
16 views
599
144
17 hours ago 00:00:12 0
A Day in My Life: Tennis Practice on the Beautiful Smy Court#TennisVlog #SmyTennis #TennisLife
17 hours ago 00:00:22 2
One Pedal, Infinite Fuzz?! Check out the Kernom Moho in Action!
2 days ago 00:02:12 0
Los Santos Street Life – A Day in the Hood 🏙️🔥 | GTA V Online