Did You Know About the :has CSS Selector?

TLDRThe :has CSS selector is going to have a big impact on how we write CSS in the future. In fact, if it ever ships in browsers, I think it breaks my mental model for how CSS fundamentally works because it would be the first example of a parent selector in CSS. :has isn’t supported in browsers right now (probably for those

2m read time From css-tricks.com
Post cover image
4 Comments

Sort: