Opera Bug #180153

tfoot row misplaced on Print Preview when table spans pages.

Now even worse in Opera 12.15

In the (X)HTML specifications, table elements can be divided into three subsections: thead, tbody and tfoot. It is important to note that the tfoot element should be placed before the tbody element, and after the thead.

In normal page rendering mode, Opera has no problems with table structure, as shown below:

Header 1 Header 2 Header 3
Foot 1 Foot 2 Foot 3
Body 1 Body 2 Body 3

If you press Shift+P, to activate Opera's Print Preview, the table above still appears fine. However, if a table containing a tfoot element spans Print Preview pages, the tfoot row will be misplaced, appearing shoved up overtop of the tbody rows. Opera appears to miscalculate where the bottom of the table is.

While in Print Preview mode, scroll down this very long table below to see the effect. After this table, there will be the same table without a tfoot row for comparason.

Header 1 Header 2 Header 3
Foot 1 Foot 2 Foot 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3

In Print Preview mode, this content may slide up over the bottom rows of the table as Opera misplaces the tfoot row. Below is a table without a tfoot element, but with the same number of tbody rows as the one above.

Header 1 Header 2 Header 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3
Body 1 Body 2 Body 3

Main Bug List