Created attachment 170020 [details] minimal test case html file demonstrating extra table cell height issue when printing When using "page-break-inside: avoid" in conjunction with a table, the table cells can be given extra height when the table lands on a page break boundary. See the attached html example for a full minimal test case which demonstrates the problem in WebKit nightly on Windows (r131444), Safari 6 Mac OS 10.7 and Chrome 22 on Debian Linux.
Created attachment 170022 [details] example PDF showing extra table cell height (saved from Safari 6 print dialog)
Created attachment 170025 [details] image marking extra table cell height in red from previous PDF example
Created attachment 170214 [details] RenderBlock patch which avoids boosting the height of table cells.
Attachment 170214 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/rendering/RenderBlock.cpp']" exit_code: 1 Source/WebCore/rendering/RenderBlock.cpp:7214: One line control clauses should not use braces. [whitespace/braces] [4] Total errors found: 1 in 1 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 170217 [details] Fix style - avoid braces for single line if statement
Comment on attachment 170214 [details] RenderBlock patch which avoids boosting the height of table cells. Does not work.
Comment on attachment 170217 [details] Fix style - avoid braces for single line if statement Does not work. I think the correct solution is to do add pagination struts to tables as Dave Hyatt suggests in https://bugs.webkit.org/show_bug.cgi?id=82617#c9.