Daniel Dekany wrote: > With an example: > > ... > <foo> > <bar> > Blah > </bar> > </foo> > ... > > If foo has a vertical margin A and bar has a vertical margin B, and > neither elements have vertical padding or border, then the total > vertical margin around the text should be max(A, B). But it seems that > with XXE it's A + B instead. Quite an annoying bug, I would say. (I > didn't find it documented as deliberate deviation from the CSS > recommendation. Anyway, it would be a strange decision). > > I have attached an example xml + css. Open the xml both with > FireFox/Mozilla (or even MSIE 6+) and with XXE to see the difference. > > BTW, the related part of the CSS2 specs is > http://www.w3.org/TR/CSS21/box.html#collapsing-margins, which says: > > In this specification, the expression collapsing margins means that > adjoining margins (no non-empty content, padding or border areas or > clearance separate them) of two or more boxes (which may be next to > one another or nested) combine to form a single margin. >
Yes, this is a bug. The problem is that I'm not sure we'll be able to fix it. I mean: this is probably a hard-to-fix bug which may require important changes.

