title: XSL-FO when setting table-cell background it overwrites / overlaps table borders
body: <p>I am having an issue and have not found a solution/workaround (although there are similar questions that have been posed) to the XSL-FO problem with cell background. We are using Apache FOP 0.25 and a rapid upgrade to the newer version another PDF processor is not feasible at the moment. </p>
  
  <p>The thing is that when I set background-color on a cell, the new background filling covers borders of the table that are visible otherwise (0.5pt solid). I have tried a couple of ways to overcome it, but they all lead to suboptimal results:</p>
  
  <ul>
  <li>setting border to 1pt - the border becomes visible but has different widths depending upon if it runs along a cell with background-color or without. It is clearly too fat. </li>
  <li><p>setting borders on each table-cell separately that has background-color. That works but I see gaps between borders that are set on the cells without background and the ones with.
  In the example below there would be visible gaps between vertical borders of cell 1.1 and cell 2.1 but not between 2.1 and 3.1.  </p>
  
  <pre><code>__________________________
  |cell 1.1: background    | 
  |cell 2.1: no background |
  |cell 3.1: no background |
  --------------------------
  </code></pre></li>
  </ul>
  
  <p>Are there any practical workarounds to solve the issue? I am setting background-color on the table-cell element, that should be correct, right?</p>
  
  <p>Many thanks</p>