- From: L. David Baron <dbaron@fas.harvard.edu>
- Date: Wed, 10 Nov 1999 08:54:52 -0500 (EST)
- To: braden@endoframe.com, thelawnet@yahoo.com
- Cc: www-style@w3.org
On Mon, 8 Nov 1999 17:16:34 -0500 (EST), "Braden N. McDaniel" (braden@endoframe.com) wrote: > I have also been unable to find a good answer in the spec about which > margin color "wins" when margins are collapsed; but, as you note, settling > this would require additional verbiage. Simply giving the option of opaque > margins wouldn't settle the issue. The answer is that the outermost margin color wins. That is, the elements involved in margin collapsing at a given point are always one or two adjacent (in the flow) siblings and the (first/last) children of those siblings. The color of the margin is that of the parent of those top-level siblings. This is clear from the definition of 'height' given in the errata [1], for section 10.6.3: # If it has block-level children, the height is the distance between # the top border-edge of the topmost block-level child box and the # bottom border-edge of the bottommost block-level child box. However, # if the element has a non-zero top padding and/or top border, then the # content starts at the top margin edge of the topmost child. # Similarly, if the element has a non-zero bottom padding and/or bottom # border, then the content ends at the bottom margin edge of the # bottommost child. David [1] http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html L. David Baron Sophomore, Harvard (Physics) dbaron@fas.harvard.edu Links, SatPix, CSS, etc. <URL: http://www.fas.harvard.edu/~dbaron/ > WSP CSS AC <URL: http://www.webstandards.org/css/ >
Received on Wednesday, 10 November 1999 08:54:55 UTC