Hi.
I have found a bug, when having a table with border-collapse: collapse and there is a
element in one of the cells.
You can reproduce the issue with this snippet:
<style type="text/css">
table {border-collapse: collapse;}
.table-bordered {border-width: 0.25mm; border-style: solid; border-color: #aaaaaa;}
</style>
<page backtop="5mm" backbottom="5mm" backleft="5mm" backright="5mm">
<table>
<tr>
<th class="table-bordered" style="width: 20mm;">0 0</th>
<th class="table-bordered" style="width: 21mm;">0 1</th>
<th class="table-bordered" style="width: 22mm;">0 2</th>
</tr>
<tr>
<td class="table-bordered"><div>1 0</div></td>
<td class="table-bordered">1 1</td>
<td class="table-bordered">1 2</td>
</tr>
</table>
</page>
The result of this code looks like this:

The first column is stretched over the whole page, because of the <div>element in the table cell.
But if you remove the table {border-collapse: collapse;} the table is rendered correctly. See:

I tried to debug the code and find out why this happens. But I was unsuccessful. So I hope you are more successful and can fix the issue @spipu ;-)
Hi.
I have found a bug, when having a table with
border-collapse: collapseand there is aYou can reproduce the issue with this snippet:
The result of this code looks like this:


The first column is stretched over the whole page, because of the
<div>element in the table cell.But if you remove the
table {border-collapse: collapse;}the table is rendered correctly. See:I tried to debug the code and find out why this happens. But I was unsuccessful. So I hope you are more successful and can fix the issue @spipu ;-)