New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 620459 link

Starred by 7 users

Issue metadata

Status: Assigned
Owner:
Use other robhogan account instead.
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 3
Type: Bug



Sign in to add a comment

Handle gracefully a page break between thead and tbody when printing

Project Member Reported by robhogan@chromium.org, Jun 15 2016

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."
 
Blocking: 24826

Comment 2 by db...@gwaea.org, Jun 16 2016

Test case: https://jsfiddle.net/jh97eeL4/
Any updates on this issue?
Blocking: -24826

Comment 5 by robho...@gmail.com, Aug 8 2017

Cc: msten...@opera.com
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