News for hackers. Stuff that matters.
Re:Rebuilding a featured news section with modern CSS: Vox news by lelandfe on Sunday April 30, 2023 @03:06PM (#35765599)
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.

Re:Rebuilding a featured news section with modern CSS: Vox news by ecuaflo on Sunday April 30, 2023 @03:36PM (#35765896)
You should consider using a polyfill
Re:Rebuilding a featured news section with modern CSS: Vox news by bobthepanda on Sunday April 30, 2023 @04:52PM (#35766519)
Polyfills can be quite expensive on a client device depending on their complexity, so they’re not some kind of free lunch.
Re:Rebuilding a featured news section with modern CSS: Vox news by lelandfe on Sunday April 30, 2023 @05:05PM (#35766618)
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!

Re:Rebuilding a featured news section with modern CSS: Vox news by no_wizard on Sunday April 30, 2023 @04:59PM (#35766577)
I don’t think there is a generally accepted implemented one.

They’d also be pretty expensive on the client