To add something to this: A border is never part of padding in FO. But border plus padding define the position of the content rectangle. In the case of the collapsing border model the content rectangle is defined by half the width of the collapsed border plus the padding (for each side). (see "Constraints" for fo:table-cell in the spec).
BTW, we can't really talk about something being broken as long as the implementation is not finished, yet. The collapsing border model is WIP after all. On 28.08.2005 19:38:39 Andreas L Delmelle wrote: > On Aug 28, 2005, at 18:17, Manuel Mall wrote: > > > Padding on table-cells is currently broken. The sample fo file below > > demonstrates the problem. I think I know the cause and the fix but > > would like confirmation: > > > > Am I correct in saying that in the collapsing border model any padding > > is not part of the "collapsing", i.e. it only applies to the border > > itself? > > I think so (although I'm not entirely sure I understand the question). > As you are probably aware, in a table with collapsing borders, only > cells can have padding. With separated borders, the table itself can > also have padding, but padding simply never applies to any other table > FOs. > (see for instance: http://www.w3.org/TR/xsl/slice6.html#fo_table-row > check the applicable properties, more precisely the 'NOTE:' on the > 'Common Border, Padding and Background' properties) > So I don't really see how padding can be 'part of' the collapsing... > > See also: http://www.w3.org/TR/xsl/slice4.html#rend-border > > As I understand it, this means that the borders are resolved for each > cell, and the padding rectangle for a cell is contained fully within > its resolved border-rectangle. > > Hope this helps (or even makes sense). > > Cheers, > > Andreas Jeremias Maerki