FelixOngati / dompdf

Automatically exported from code.google.com/p/dompdf
0 stars 0 forks source link

table layout breaks when a row is hidden using "display: none" #553

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
i tried to use DOMPDF 0.6.0 beta 3 but the table rendering is broken...
but its working in DOMPDF 0.6.0 beta 2...

the table cells are misaligned if you have a table row which is hidden via 
display: none css property...

to reproduce the issue in beta 2 siply try to render the following html snipped:

<html><head><title>testcase</title></head><body>
<table border="1">
<tr><td>1. bla</td><td>1. blub</td></tr>
<tr style="display: none;"><td>hidden bla</td><td>hidden blub</td></tr>
<tr><td>2. bla</td><td>2. blub</td></tr>
<tr><td>3. bla</td><td>3. blub</td></tr>
<tr style="display: none;"><td>hidden bla</td><td>hidden blub</td></tr>
<tr style="display: none;"><td>hidden bla</td><td>hidden blub</td></tr>
<tr style="display: none;"><td>hidden bla</td><td>hidden blub</td></tr>
<tr><td>4. bla</td><td>4. blub</td></tr>
<tr><td>5. bla</td><td>5. blub</td></tr>
</table>
</body>

Original issue reported on code.google.com by th...@eightysoft.de on 11 Nov 2012 at 1:05

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 14 Nov 2012 at 11:09

GoogleCodeExporter commented 9 years ago

Original comment by eclecticgeek on 24 May 2013 at 3:00