Re:Show HN: Neat, the Minimalist CSS Framework
by chrismorgan on Wednesday April 26, 2023 @10:21AM
(#35714087)
I’m aware of all the stuff. I just think (and have thought from the start) that it’s wrong and has missed the point, especially in a flex and grid world where (a) the difference should matter much less often, and (b) if the difference does matter, you could probably implement things better (in a way that would incidentally make the difference not matter).
I get the contrarian thing, but this doesn't make a whole lot of sense.
Both border-box and content-box are about content; it's just a matter what's included or not in the width of a box. Sure, there's some truth about what designers expected, but they weren't the only ones who were confused about how a box's border and padding changed how content worked…
There's a reason why virtually every widely-used CSS framework starts by changing content-box to border-box.
It's one of those issues that if we could go back in a Time Machine, content-box would have been the default; this is the next best thing:
ReferencesFrom 2012, which started it all: https://www.paulirish.com/2012/box-sizing-border-box-ftw/
Developers are so psyched, border-box has a holiday: "International box-sizing Awareness Day"—https://css-tricks.com/international-box-sizing-awareness-da...
CSS Tricks almanac: https://css-tricks.com/almanac/properties/b/box-sizing/