openhtmltopdf icon indicating copy to clipboard operation
openhtmltopdf copied to clipboard

Wrong overflow direction

Open kenneth-apuyan opened this issue 1 year ago • 0 comments

Given this html code:

<table>
 <tbody>
<tr>
<td style="border:1px solid black;">
<div style="width:40px;white-space:nowrap;float:left;" align="center"> 
11111
</div>
</td>
<td style="border:1px solid black;">
<div style="width:40px;white-space:nowrap;float:left" align="center"> 
2222222222222222
</div>
</td>
</tr>
</tbody>
</table>

When using openhtmltopdf, it overflows on both left and right direction, which it shouldn't because of the float:left in the div.

openhtmltopdf sandbox image

w3schools sandbox image

kenneth-apuyan avatar Mar 09 '23 05:03 kenneth-apuyan