DEV Community

Discussion on: CSS :is() fun

Collapse
 
imcaity profile image
Caity Opelka • Edited

Definitely has its pros and cons, but it's worth tinkering. Also check out :not(), which does the opposite and excludes the selectors passed to it. Cheers!

Collapse
 
cchana profile image
Charanjit Chana

:not() is awesome, I use it all the time! It took me a while to adjust my writing style for CSS to get into the habit vs using something like :last-child instead though