4 ms·
Note that while container queries are available in modern browsers' most recent versions, it is still very fresh, with broad support landing in September, and F
by lelandfe 4y ago
Note that while container queries are available in modern browsers' most recent versions, it is still very fresh, with broad support landing in September, and Firefox support just last month: https://caniuse.com/css-container-queries https://caniuse.com/css-container-queries
If you use them, you'll need to show outdated browser warnings for basically all browsers older than September 2022. Your site will be horrifically broken without container query support.
I'm investigating if we want to even do that at my job. That's a pretty steep cost.
- ecuaflo 4y agoYou should consider using a polyfill
- bobthepanda 4y agoPolyfills can be quite expensive on a client device depending on their complexity, so they’re not some kind of free lunch.
- lelandfe 4y agoExpensive in a few ways. Deferring styles to execution time means users on slow networks or devices will have an absolutely brutal load experience. This might all be an acceptable trade off depending on one's user base, of course!
- no_wizard 4y agoI don’t think there is a generally accepted implemented one. They’d also be pretty expensive on the client