News for hackers. Stuff that matters.
Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout by klabb3 on Tuesday April 23, 2024 @07:38AM (#40130716)
CSS may be complex, but you get a huge bang for the buck in terms of UX, rendering performance, flexibility, accessibility, compared to most drawing and layout systems. You could argue against border-radius and flex as well, but Im glad we’re past clearfix and gifs for corners. Does masonry layout qualify for becoming standard? I don’t know.
Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout by blackbear_ on Tuesday April 23, 2024 @08:04AM (#40130957)
> compared to most drawing and layout systems

This is just an accident of history and not because CSS has anything that makes it intrinsically better than the alternatives.

Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout by jampekka on Tuesday April 23, 2024 @08:41AM (#40131283)
Anything other than existing.

CSS is quite a mess, and I would welcome a backwards-incompatible new layouting system, but all the alternatives out there are a lot worse.

Re:Help us invent CSS Grid Level 3, a.k.a. "Masonry" layout by klabb3 on Tuesday April 23, 2024 @11:33AM (#40133104)
Accumulated garbage for backwards compatibility? Let him who is without sin cast the first stone.

I’m not saying css is intrinsically better (what does intrinsic even mean in this case?). It’s pragmatically better than anything else I’ve seen. It’s dead simple to learn and use, and (almost) fully declarative, and degrades gracefully. Just show me a better alternative and I’ll change my mind.