Handle gracefully a page break between thead and tbody when printing |
|||
Issue description"What if a page break occurs between a thead and tbody? IE and Firefox leave behind an orphaned thead at the bottom of the page, immediately followed by another thead at the top of the next page. Not good. Would be nice if the entire top part of a table, including the thead, caption and top-most indivisible part of the first tbody (typically, the first row or "line" of cell data), were treated as a single, unbreakable block (though only the thead should repeat). Maybe this could be optional behavior activated by setting page-break-after:avoid on the thead and/or caption. Note that Firefox 47 does prevent breaks between a *caption* and the first indivisible part of a tbody. If it also did this with theads, FF's table printing would be perfect."
,
Jun 16 2016
Test case: https://jsfiddle.net/jh97eeL4/
,
Aug 6 2017
Any updates on this issue?
,
Aug 6 2017
,
Aug 8 2017
No update, other than to note that this will probably require us to support page-break-after:avoid on table sections, which we don't currently. I'm going to leave it in my queue for now as I will probably get to it eventually. |
|||
►
Sign in to add a comment |
|||
Comment 1 by robhogan@chromium.org
, Jun 15 2016