W3C home > Mailing lists > Public > public-css-bugzilla@w3.org > February 2012

[Bug 16037] Margin collapsing: unintuitive collapsing between last child and auto-height, large min-height parent

From: <bugzilla@jessica.w3.org>
Date: Mon, 20 Feb 2012 20:21:02 +0000
To: public-css-bugzilla@w3.org
Message-Id: <E1RzZjK-00044E-Rh@jessica.w3.org>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16037

--- Comment #3 from Anton P <antonsforums@yahoo.co.uk> 2012-02-20 20:21:02 UTC ---
The proposal in Bug 16036 suggests that another change is needed to the quoted
item in Comment 2 above.  The "and a 'min-height' of zero" phrase actually
ensures that the item remains correct in the light of the proposal!  However,
the argument that it is misleading to focus on one particular case as if it
were the only relevant case still stands, so here is an alternative proposal
for this bug if the proposal for Bug 16036 is accepted:

Replace:

  # 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.

with:

  | The bottom margin of an in-flow block box with a 'height' of 'auto'
  | 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 neither collapses with a top margin that has clearance
  | nor (if the box's min-height is non-zero) with the box's top margin.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 20 February 2012 20:21:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 February 2012 20:21:04 GMT