Forum Bugs

Page break problems if table cell higher than page

Stephan
Hi,
if the first table body (tbody) row is higher than one entire page, the table caption and thead elements stand alone on separate pages.
This behaviour seems to be independent of style rules
table { page-break-inside:avoid }
caption thead { page-break-after: avoid }

I would expect that caption and thead resides on top of the same page on which the first tbody row starts.

By the way:
The table caption box is too small. It seems to be missing the width of the right and left table borders!

Stephan
mikeday
Hi Stephan,

if the first table body (tbody) row is higher than one entire page, the table caption and thead elements stand alone on separate pages.

Keeping table cells from growing too big should avoid this issue. If table cells are approaching or exceeding the size of a page, then they are definitely growing too big.

Sometimes nested tables will be used as a means to implement particular page layouts. This leads to large amounts of content being placed in a single table cell, which makes it difficult to paginate the document. Web browsers generally do not perform pagination, so unfortunately some websites use large table cells in this manner. However, most page layouts do not require the use of nested tables and large table cells.

The table caption box is too small. It seems to be missing the width of the right and left table borders!

Thanks for notifying us of this issue, we will correct it in the next release of Prince.

Best regards,

Michael
mikeday
Today we have released Prince 5.1 rev 8, which fixes the issue affecting the width of table captions. Thank you for reporting the issue! :)