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 *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 - creating 0 specificity defaults
#css
--
Come hang out with other dev’s in my Discord Community
💬
Keep up to date with everything I’m up to
✉
Come
0 views
4
1
6 days ago 00:00:38 1
Кофе + Кола = ??? #shorts
7 days ago 00:00:52 0
ВАС ШОКИРУЕТ ЭТА ИНФОРМАЦИЯ 🤬😳🤯
1 week ago 00:00:59 43
EXCLUSIF! DIDDY RESTERA EN PRISON-Liberté sous caution refusée à 17H 17 mns
1 week ago 03:54:10 0
Diddy échappe aux accusations les plus graves - Les Détails | Elon Musk Reconnait Que Trump est...
2 weeks ago 00:00:29 4
Вот Как Китайцы Отбеливают Кроссовки #shorts
2 weeks ago 00:00:35 0
Положи Туалетную Бумагу В Сковородку И…#shorts
2 weeks ago 00:02:11 0
Albert Wesker - Back From The Dead
2 weeks ago 00:00:38 2
Только Китайцы Знают Об Этом #shorts
3 weeks ago 00:00:34 0
ПОПРОБУЙ НЕ РЖАТЬ! НАСТОЯЩИЙ СМЕХ! 😂🙀
3 weeks ago 00:00:18 0
A hippopotamus tries to escape from a lion’s den it accidentally entered #wildlife
3 weeks ago 00:00:38 2
Натри Колени Чесноком И…#shorts
3 weeks ago 00:00:15 0
A cheetah preys on a gaiter stuck in a tree #wildlife
4 weeks ago 01:29:05 2
Leonard Bernstein, Berlioz, Roméo et Juliette Op. 17
4 weeks ago 00:00:39 0
HYT-100 Semi-Auto Labeler DEMO - Perfect Labels on Round Bottles in 2 Seconds! ⏱️✨
4 weeks ago 00:00:25 0
ПОПРОБУЙ НЕ РЖАТЬ! ЖЕСТКИЙ СМЕХ! 🤣🤣
4 weeks ago 00:06:36 34
Aethel & Nyan Laugh Hysterically At The Most INAPPROPRIATE Thing
4 weeks ago 00:00:16 0
This lion is trying to escape for his life from the raging bulls #shorts #wildlife
4 weeks ago 00:00:46 0
The African lion kills without mercy or compassion #wildlife
1 month ago 00:00:21 1
The foolish hyena goes to his fate with his own feet #wildlife #animal #wildanimals
1 month ago 00:00:11 0
As the cobra chases the cheetah, a mythical animal suddenly appears! #shorts #rareanimal #wildlife
1 month ago 00:00:53 3
ПРОВЕРЬТЕ! ПОДДЕЛКИ ЗАПОЛНИЛИ МАГАЗИНЫ 🤬😳🤯
1 month ago 00:00:46 3
ПУТИН ВСЕХ ПОСТРОИЛ 🤬😎🤫
1 month ago 01:02:32 0
50 Things Only Those Who Grew Up in the 1990s Remember
1 month ago 00:00:16 0
When the zebra decides to take revenge on the lion, who can stop him? #shorts #shortvideo #wildlife