What I really like about this article is how Josh explains how :has()
works. They’re especially good at that sort of thing. There’s lots of good real-world examples in there too which compliments the vibe I was trying to achieve earlier in the year. We need more real world examples like this!
I’ve long said flexbox was my all time favourite CSS feature, but the more I see and use :has()
, it’s getting close to overtaking for sure.