On Wed, Feb 24, 2010 at 4:27 AM, Philippe Wittenbergh <[email protected]> wrote: > > On Feb 23, 2010, at 11:44 PM, Bruno Fassino wrote: > >> I have here another simple example where a top:auto a.p. box is >> positioned differently in Opera than in all other modern browsers. >> http://www.brunildo.org/test/Op_top_auto.html > > Opera 10.5a displays this the same as Gecko 1.9.0+ and WebKit/Safari 4.0. > That is the only display that makes sense. The top box has a margin-bottom of > 100px, thus will push down the red, a.p. box 100px anyway if it were static. > Once the box is positioned (a.p.) - removed form the flow, the margins > between the top box and the bottom one collapse together and the a.p. box > overlaps the bottom paragraph. The a.p. box should certainly not jump to > touch the bottom of the top box. Opera 10.0 and older is absolutely wrong in > what it does.
Thanks Philippe, I agree that the Opera 10 rendering is surely "undesired" (and it's nice that Op 10.5 is now following the others). Since the spec says that "user agents are free to make a guess at its probable position" (speaking of the first box of the element in the "static position") and since anyone can "guess" anything :-) I simply believe we cannot say that something is "wrong" here. > Alan's testcase (#2) is different in that what moves things around is a top > margin of an element that follows the a.p.-element. I think you're right to > say (quoted below) that there is more ambiguity in the spec. Opera seems to > compute top before taking the margin collapsing into account, others do it > having already taken that margin-collapsing into consideration. Ah, yes, I see. There are probably other cases with different "interpretations". For example I see here http://www.brunildo.org/test/Op_top_auto.html that Gecko and Webkit differ. The a.p. box has a margin-top. When calculating the top:auto position Webkit makes the a.p. margin-top to collapse with a previous margin-bottom, Gecko does not. Again, I don't think we can "strictly" say that one is correct, and the other not. Regards, Bruno -- Bruno Fassino http://www.brunildo.org/test ______________________________________________________________________ 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/
