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.
I'm using XXE 3.6.0.
--
Best regards,
Daniel Dekany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: margin-test.css
Type: text/css
Size: 203 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070521/19f02a16/attachment.css
-------------- next part --------------
A non-text attachment was scrubbed...
Name: margin-test.xml
Type: application/xml
Size: 191 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20070521/19f02a16/attachment.xpdl