Day 16: the specificity of :has()

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
Just like with :is() and :not(), the specificity of :has() is replaced by the specificity of the most specific selector in its selector list argument. Unlike :nth-child() or :link, :has() itself doesn't add to the specificity. yo! /* A tag and a class */ div:has(.child) { background: red; } /* A tag: specificty too low */ div { background:...