This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Reported by Anton Prowse (A) 8.3.1 (Collapsing margins) says in a note listing various practical implications of the margin collapsing rules: # A box's own margins collapse if the 'min-height' property is zero, and # it has neither top or bottom borders nor top or bottom padding, and it # has a 'height' of either 0 or 'auto', and it does not contain a line box, # and all of its in-flow children's margins (if any) collapse. The prose is gramatically incorrect since "(if any)" qualifies children, not margins. s/all of its in-flow children's margins (if any) collapse/the margins of all of its in-flow children (if any) collapse/ See: http://lists.w3.org/Archives/Public/www-style/2010Aug/0364.html (B) Most list items in the note referred to above discuss boxes, but two of them discuss elements. Perhaps those two could be changed to discuss boxes, to give more consistency to the note. See: http://lists.w3.org/Archives/Public/www-style/2010Sep/0698.html (C) The note referred to above includes: # * The bottom margin of an in-flow block box with a 'height' of # 'auto' and a 'min-height' of zero collapses with its last in-flow # block-level child's bottom margin if the box has no bottom padding # and no bottom border and the child's bottom margin does not # collapse with a top margin that has clearance. There's no such thing as "a top margin that has clearance". Possible solution: | [...] and the child's bottom margin does not | collapse with the top margin of an element (possibly itself) that | has clearance." See: http://lists.w3.org/Archives/Public/www-style/2010Aug/0416.html