Specificity in :not(), :has(), and :matches()

Eric Meyer / filed under HTML & CSS

A few years back, I wrote a short post on specificity, element proximity, and the negation pseudo-class. Everything in it is still accurate and relevant, but I have some updates to share.

Subscribe to newsletter

Design and frontend links delivered to your inbox every day and week. No spam, unsubscribe at anytime.

Choose frequency

Permission