News for hackers. Stuff that matters.
Re:Incomplete List of Mistakes in the Design of CSS by multinglets on Monday October 26, 2015 @11:33PM (#10456141)
I can't help but wonder if the vertical margin collapsing (in general) would have seemed worth it if we weren't borrowing concepts from print media.
Re:Incomplete List of Mistakes in the Design of CSS by TabAtkins on Sunday November 01, 2015 @02:26PM (#10487735)
It is, still. You want separation between your paragraphs and other elements; you don't want the first and last children of a box to be separated from the edges of that box. Margin-collapsing does that (sibling boxes collapse margins together, first/last collapse with parent and shift their margins "out"), but it's difficult to do otherwise.

That said, you could do one-sided margins better if we hadn't had naked text in the layout model. If everything was wrapped in elements, then text at the start of a container element wouldn't require a margin-top on the first child element, while text at the bottom wouldn't require margin-bottom on the last child element. Naked text is a mistake. (And I just added it to the list. ^_^)