Just occurred to me that it may help if I explain what I am doing as I have no intention to meddle with what Andreas is doing or the core table layout code.
It all has still to do with the percentage stuff. Percentages on padding values are not even configured (that is being recognized by the property parser) in the current trunk version. So I fixed that and then started to construct test cases for padding with relative values (= percentages). Actually the coverage is very similar to the background images with relative positioning: region, block-container, block, tables, lists, inline, character, page-number - which btw most of those I got working now. This is how I came across the issue with the padding in tables with the collapsing border model and I only fixed (locally) it so I can keep going with this percentage stuff. Manuel On Mon, 29 Aug 2005 03:00 pm, Manuel Mall wrote: > On Mon, 29 Aug 2005 02:54 pm, Jeremias Maerki wrote: > > 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. > > Sorry fair enough - no slur intended. I ended up adding the original > padding to the resolved CommonBorderAndPadding structure and all is > fine now (as far as padding on these table cells goes). > > > 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 > > Manuel