RE: [CSS21] Collapsing Margins

On the first test [1], Firefox behavior (and the expected behavior for the test) is definitely correct. Used height of body is not greater than its min-height, it is equal, so its bottom margin doesn't collapse with its children.

As noted earlier, The wording in 8.3.1 has in fact changed (to allow collapsing when content height is exactly equal to min-height), but it does not change expected behavior for this case.

IE8 also handles this correctly (although there is a thin red stripe in the bottom, from an unrelated bug).

[1] http://lachy.id.au/dev/css/tests/adhoc/collapsing-margins-01.html

[2] http://csswg.inkedblade.net/spec/css2.1#issue-14

Received on Tuesday, 9 September 2008 21:10:56 UTC