Hi all, Another question regarding backgrounds. See the attached FO file and the resulting PDF. Cell 1.1 is spanning over 2 rows. Its border-right is composed of 2 segments, one thicker and one thinner. For the latter, the gap is currently filled with the table's background.
Question is: shouldn't that rather be the cell's background? Do we consider that this gap should correspond to additional padding for the cell, or to some transparent space showing the row's or the table's background? The first answer seems the most logical to me, but that means that if the background is an image, it may be cropped by the other borders. Is everyone ok with that? Thanks, Vincent
<?xml version="1.0" standalone="no"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="page" page-height="10cm" page-width="15cm" margin="1cm"> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="page" font-family="serif" font-size="14pt"> <fo:flow flow-name="xsl-region-body"> <fo:table table-layout="fixed" width="200pt" border-collapse="collapse" background-color="silver"> <fo:table-column number-columns-repeated="2" column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row> <fo:table-cell number-rows-spanned="2" background-color="yellow" padding="10pt" border="4pt solid black"> <fo:block>Cell 1.1</fo:block> </fo:table-cell> <fo:table-cell border="20pt solid blue"> <fo:block>Cell 1.2</fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell border="2pt solid red"> <fo:block>Cell 2.2 Cell 2.2 Cell 2.2 Cell 2.2</fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </fo:root>
res.pdf
Description: Adobe PDF document