News for hackers. Stuff that matters.
Re:Incomplete list of mistakes in the design of CSS by wk_end on Thursday December 11, 2025 @04:14AM (#46229233)
Browser performance tips from 2014 mean very little twelve years on. Not only have machines gotten faster and networks gotten faster, rendering engines gotten faster. And I'm doubtful it nested flexboxes would've been all that much of a problem in most cases even then.

The most important thing is to use the right tool for the job. If grid lets you express what you want in the most straightforward way, use it; if flexbox does - even if it needs nesting - then use it instead. Don't shoehorn one into a situation where the other makes more sense. And sometimes either will work for a particular situation and that's fine too; use whatever you find most ergonomic. They're both very good in their own way.

Re:Incomplete list of mistakes in the design of CSS by cluckindan on Thursday December 11, 2025 @05:03AM (#46229534)
Try resizing a browser window with nested a flex layout.
Re:Incomplete list of mistakes in the design of CSS by tim1994 on Thursday December 11, 2025 @05:11AM (#46229580)
Should you optimize for resize performance? I guess that depends on the app. Use the tool that fits the requirements.
Re:Incomplete list of mistakes in the design of CSS by cluckindan on Thursday December 11, 2025 @07:36AM (#46230643)
Resizing is not the optimization target, it just makes reflow performance visually apparent.
Re:Incomplete list of mistakes in the design of CSS by mananaysiempre on Thursday December 11, 2025 @07:42AM (#46230689)
The article is largely about layout shifts caused by flexbox during loading, and while networks have indeed gotten faster, they haven’t gotten faster uniformly across situations and people. Being able to show things properly while they are still downloading remains useful.