Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

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.



You should consider using a polyfill


Polyfills can be quite expensive on a client device depending on their complexity, so they’re not some kind of free lunch.


Expensive 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!


I don’t think there is a generally accepted implemented one.

They’d also be pretty expensive on the client




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: