Jeckky / dompdf

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

border-collapse: collapse on a non-flowed table causes its borders to render independently of the content #483

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Layout: A table containing a row that has a small table in one cell and a large 
amount of content in another cell. The inner table is styled with 
`margin-collapse: collapse;`.

Result: The borders of the inner table will always be positioned at the top of 
the cell. This occurs even if the inner table's height is less than the height 
of the containing cell and the vertical-align property is set to something 
other than top. The content of the inner table, however, is positioned 
correctly.

This bug was first reported in v0.6.0 beta 3. It is not present in v0.6.0 beta 
2. I have not identified the specific revision in which it was introduced.

This report is based on the discussion here:
https://groups.google.com/d/topic/dompdf/2fQCjFXY6JM/discussion

Original issue reported on code.google.com by eclecticgeek on 14 May 2012 at 2:49

GoogleCodeExporter commented 8 years ago

Original comment by eclecticgeek on 14 May 2012 at 2:51

Attachments:

GoogleCodeExporter commented 8 years ago
-The inner table is styled with `margin-collapse: collapse;`.
+The inner table is styled with `border-collapse: collapse;`.

Original comment by eclecticgeek on 15 May 2012 at 3:03

GoogleCodeExporter commented 8 years ago
It appears the problem generally affects any table that is not in its normal 
flowed position due to some aspect of the page shifting the table (e.g. floated 
content, vertical alignment).

Test case here: 
http://eclecticgeek.com/dompdf/debug.php?identifier=d1806c8e72cc0f58c597d47a7b65
f949

Ref: https://groups.google.com/d/topic/dompdf/gUBwafCOML4/discussion

Original comment by eclecticgeek on 15 May 2012 at 3:12

GoogleCodeExporter commented 8 years ago

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