Bug 34218

Summary: Table headers and footers don't repeat when printed on multiple pages
Product: WebKit Reporter: David Richardson <channel200>
Component: TablesAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: ap, bobiswierd, brandon, dglazkov, mitz, m.kurz+webkitbugs, nikita.grachev, peter.liu, sorin.sbarnea, webkitbugs
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Description Flags
Test case for table header and footer printing behavious none

Description David Richardson 2010-01-27 09:15:52 PST
Created attachment 47543 [details]
Test case for table header and footer printing behavious

<thead> and <tfoot> elements need to appear on every page of a printed table if they are to be useful.
Yes, the spec says they *may* be repeated, but that's hardly useful in practice.
Both Firefox and Internet Explorer have supported this for many years.

Yes, this has been reported previously, but not with style={display: table-header-group;} explicitly set.

Sample attached.
Comment 1 Peter Liu 2011-02-17 10:39:33 PST
We are also experiencing this problem on Safari and wkhtmltopdf (which uses WebKit).  The problem is very easy to duplicate per the attachment in this ticket.  Open it in IE or Firefox and you'll the table header repeated on every page when printed.  But in Safari, it will not.

I have also seen reports of the same problem in Chrome, which I believe uses the Webkit engine.  The version of the Safari I'm using the test is 5.0.3.
Comment 2 Brandon Valentine 2011-07-26 11:03:19 PDT
Can confirm that this is still broken on WebKit2 as shipped in OS X 10.7 / Safari 5.1. =(

Any interest in fixing this in a future release?
Comment 3 Nikita 2012-02-19 20:29:15 PST
please fix it
Comment 4 webkitbugs 2012-04-03 03:06:18 PDT
Duplicate of #17205
Comment 5 Alexey Proskuryakov 2012-04-03 08:50:58 PDT
Looks like that, thank you!

*** This bug has been marked as a duplicate of bug 17205 ***