If you can replace javascript with css that's a win for a lot of reasons You're not no longer having to worry about the performance of uh that type of observer. It gives you so many possibilities for their styling Yeah, it would just do more control because like one of the biggest things in css overall is that people often think Hey, I said this thing to 50 or I say this thing to 100 and it's not going to 100 percent. That's always because the parent is limiting its size in some sort of way.
In this Hasty Treat, Scott and Wes explain what container queries are, use cases for them, new units of measurement, and possible issues with container queries.
Show Notes
Tweet us your tasty treats