Le 9 août 2012 à 20:06, Philip TAYLOR a écrit : > But what for behaviour does the specification call, Philippe, in > your opinion ?
Back in time – somewhere in 2007 or so – when we first discussed and investigated this, the Gecko behavior was correct. But the spec text was different. Since then, the CSS WG discussed that issue and modified the spec text (quoted below); see the links provided by Alan. But I find the text much more ambiguous than it was then. The behavior as shown by WebKit, Presto, Trident is much more intuitive, although – I think – not correct by the spec. Obviously, all 3 implementations haven't found it necessary to modify their behavior (4years later…) see http://www.w3.org/TR/CSS21/box.html#collapsing-margins > 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. BTW - I updated my test case with some more examples that illustrates the ambiguous behaviour. http://dev.l-c-n.com/_temp/min-height_margin-b.html Philippe -- Philippe Wittenbergh http://l-c-n.com ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
