zachleat@zachleat.com’s Mastodon Archive

Whew. css-tricks.com/has-is-an-unfor

1. jQuery had its own CSS selector syntax for :has(), which was fine because jQuery pre-dated any standardized querySelector
2. querySelector was standardized (largely because of the popularity of jQuery) and jQuery moved to use it—though jQuery still maintained this non-standard selector syntax
3. :has() becomes a real standardized thing but conflicts with jQuery’s version
4. Official :has() has to change to not break the web

I’m feeling dizzy.

(via @jen4web)