2 ms·
Awesome read! And yes, :has() is supported now by all major browsers. https://developer.mozilla.org/en-US/docs/Web/CSS/:has https://developer.mozilla.org/en-US
by huksley 3y ago
Awesome read! And yes, :has() is supported now by all major browsers.
https://developer.mozilla.org/en-US/docs/Web/CSS/:has https://developer.mozilla.org/en-US/docs/Web/CSS/:has
- Dalewyn 3y agoKeeping in mind that "all" major browsers is Chrome, Chrome, Chrome, Chrome, Firefox, Chrome, Chrome, Safari, and Chrome.
- teddyh 3y agoI feel there’s a Monty Python parody there somewhere.
- tgv 3y agoAnd that there are so many people with older browsers. And there is no easy polyfill for :has.
- ttfkam 3y agoNot as many as you'd think. Chrome's automatic update a decade and a half ago really changed the game from when folks had to manually upgrade. IE 11 installs are getting real small and typically have enterprise IT teams to help them out. I'm sure there's some poor souls out there still using Windows XP, best wishes to them, but I'm not devoting any engineering hours on their behalf. Just like folks running a 57 Chevy, you're welcome to it, but you're responsible for its maintenance, upkeep, and road-worthiness from here on out. If that's how you want to spend your time, all the best. Just don't go complaining that the Bluetooth doesn't work.
- tgv 3y agoIt's not about IE11. :has() is not available on Safari before 15.4 and Firefox before 121. Nor Samsung before 20. That's all reasonably new, and many people, especially on mobile, can't update.