Jeremias Maerki a écrit :
> Hmm, I don't find anything in XSL 1.1 or CSS 2 that would be clear
> enough for either solution. So I can't say it's either left or right,
> but my personal preference would be the left solution. Shrug.

Well, section 7.28.5 in XSL-FO 1.1 (description of the
"border-separation" property) is actually pretty clear about this:

    "The "border-separation" property specifies the distance between the
    borders of adjacent cells. This space is filled with the background
    of the table element."

The text is basically taken from section 17.6.1, "border-spacing" of
CSS2.

We can imagine that border-separation shouldn't really apply /within/
table-cells, even spanning ones, and thus that the corresponding rows or
columns should be adjacent. That would give the attached result. Perhaps
more what the user would expect, but doesn't really make sense IMO.

Anyway, another candidate request for clarification to xsl-editors@
I guess...

Vincent


> On 29.06.2007 11:04:13 Vincent Hennebert wrote:
>> Guys,
>>
>> I believe there's a bug in the handling of table- and row-backgrounds.
>> See the following fo snippet:
>> <fo:table width="100%"
>>   table-layout="fixed"
>>   border-collapse="separate"
>>   border-separation="8pt"
>>   background-color="blue"
>>   border="4pt solid black">
>>   <fo:table-column number-columns-repeated="2"
>>     column-width="proportional-column-width(1)"/>
>>   <fo:table-body>
>>     <fo:table-row background-color="yellow">
>>       <fo:table-cell border="4pt solid red" number-rows-spanned="2">
>>         <fo:block>Cell 1.1</fo:block>
>>         <fo:block>Cell 1.1</fo:block>
>>         <fo:block>Cell 1.1</fo:block>
>>         <fo:block>Cell 1.1</fo:block>
>>         <fo:block>Cell 1.1</fo:block>
>>       </fo:table-cell>
>>       <fo:table-cell border="4pt solid red">
>>         <fo:block>Cell 1.2</fo:block>
>>         <fo:block>Cell 1.2</fo:block>
>>       </fo:table-cell>
>>     </fo:table-row>
>>     <fo:table-row background-color="green">
>>       <fo:table-cell border="4pt solid red">
>>         <fo:block>Cell 2.1</fo:block>
>>       </fo:table-cell>
>>     </fo:table-row>
>>   </fo:table-body>
>> </fo:table>
>>
>> The result we get is on the left on the attached picture. I believe the
>> correct one should be the drawing on the right, because the area
>> corresponding to the border-separation should be painted with the
>> background of the table, not of the rows (see §6.7.3 of XSL-FO 1.1).
>> That's what Firefox is doing.
>>
>> Any disagreements?
>> Vincent
>>
>
>
>
> Jeremias Maerki

<<inline: table-row_backgrounds3.png>>

Reply via email to