I've got a table on which I've set "page-break-inside: avoid;". This works fine, except for the caption of the table... The caption is not moved to the next page along with the rest of the table.
If the table is too long for the page, the table is moved to the next page but the caption stays behind on the previous page:
<table>
<caption>Table caption</caption>
<tr>
<th>table header</th>
</tr>
<tr>
<td>table content</td>
</tr>
</table>
If the table is too long for the page, the table is moved to the next page but the caption stays behind on the previous page:
Table caption
-- page break --
table header
table content