My nav bar went from 23 lines of flexbox to 6 after I messed with :has() last week
I kept fighting dropdown hover states with JS and extra classes for months, then tried one :has() selector on a whim. Something like .nav:has(.dropdown:hover) .submenu { display: block } replaced all of it. I tested it in Chrome and Firefox and it just works, no polyfill needed. Curious if anyone here trusts :has() in production yet or if I'm jumping in too early.