Thanks for the reply Boris
I didn't think of table borders being centred on their edges when I wrote the last message, but this would explain some of the rendering. So with Gecko, will borders with widths that equate to odd pixel values have the extra pixel width put outside on left and top edges and inside on bottom and right edges? (this is for screen media only of course, there's probably a more appropriate unit to use here).
After reviewing the CSS 2 and 2.1 spec, I'm still a little skeptical as to if rendering the tables collapsed border over the top of it's containing blocks edge is the intended way of doing it. I don't mean to barge in and tell you whats right and wrong, I'm sure you've spent many, many hours interpreting the spec. But please consider this.
In section '17.6.2 The collapsing border model' it is stated that after initial calculations on the first and last cells of the first table row, 'If subsequent rows have larger collapsed left and right borders, then any excess spills into the margin area of the table.' It follows, 'Any borders that spill into the margin are taken into account when determining if the table overflows some ancestor.'
Based on this last statement, if borders which spill into margins should be taken into account when determining overflows, shouldn't they also be taken into account when rendering?
http://qirexrd.europe.webmatrixhosting.net/gecko/test_sco.htm
I've added 'overflow:auto' to the div in another example, try sizing your browser window small so the table doesn't fit inside the div and scroll bars are shown. Notice that when you scroll to the right and bottom there is a 1px white gap. I'm assuming the gap should be occupied by the table, but the border overflowing into the margins is not taken into consideration.
Further on the positioning of block elements in normal flow, section 9.4.1 states 'In a block formatting context, each box's left outer edge touches the left edge of the containing block.' My interpretation of this is that the table border should not overlap the containing div's border, it should appear just inside of it.
Thanks again for your response, I look forward to your comments on this. _______________________________________________ mozilla-layout mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-layout
