{"id":376331,"date":"2023-01-20T07:34:09","date_gmt":"2023-01-20T15:34:09","guid":{"rendered":"https:\/\/css-tricks.com\/?p=376331"},"modified":"2023-01-23T08:00:57","modified_gmt":"2023-01-23T16:00:57","slug":"more-real-world-uses-for-has","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/more-real-world-uses-for-has\/","title":{"rendered":"More Real-World Uses for :has()"},"content":{"rendered":"\n

The :has()<\/code> pseudo-class<\/a> is, hands-down, my favorite new CSS feature. I know it is for many of you as well, at least those of you who took the State of CSS survey<\/a>. The ability to write selectors upside down gives us more superpowers I\u2019d never thought possible.<\/p>\n\n\n\n

I say \u201cmore superpowers\u201d because there have already been a ton of really amazing clever ideas published by a bunch of super smart people, like:<\/p>\n\n\n\n