More people are using container queries than I realized!
This is a great thread listing some of the sites using them in production, and also some graphs that show some clear positive trends ๐
This is a great thread listing some of the sites using them in production, and also some graphs that show some clear positive trends ๐
Reposted from
Philip Walton
Great post by @joshwcomeau.com on why CSS containment is needed for Container Queries: bsky.app/profile/josh...
But I need to somewhat disagree with the premise that "none of us are using them" :)
If you look at the data, many popular sites already ship CQs in production!
Here's a quick look: ๐งต
But I need to somewhat disagree with the premise that "none of us are using them" :)
If you look at the data, many popular sites already ship CQs in production!
Here's a quick look: ๐งต
Comments
I also realized right after posting that it sounds like I think my blog post is the solution to their *overall* adoption, like this one post will change everything. And I absolutely don't think that. ๐
Container queries were both much easier to maintain and had much better performance (vs React)
https://caniuse.com/css-container-queries
Maybe in 2026...
Unless you target some internal corporate networks with insecure & highly risky old browser versions, that is a bigger problem.
https://caniuse.com/css-container-queries
Plenty of people in the world using old mobile devices, for example.
Just the other day I fixed a bug because of a desktop FF user running a version from 2018 in a very old Mac Pro.