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

Issue 656232 link

Starred by 21 users

Issue metadata

Status: Fixed
Merged: issue 620223
Owner:
Use other robhogan account instead.
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocking:
issue 692875
issue 710378



Sign in to add a comment

While table header prints in all pages, table footer only appears in last page.

Reported by sass...@gmail.com, Oct 15 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36

Steps to reproduce the problem:
1. Make a big table with thead and tfoot.
2. Try to print it.

What is the expected behavior?
Header and footer in all pages.

What went wrong?
Footer appears only in last page.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 54.0.2840.59  Channel: stable
OS Version: OS X 10.12.0
Flash Version: Shockwave Flash 23.0 r0

I understand maybe there are 2 interpretation of what's the definition of a footer for a table and some may expect it to appear in only last page while some expect it to appear in all pages. So I guess it should be possible to configure it (a `-webkit-*` css rule maybe)

Actually I'm using the header/footer to give a margin to the table in all pages. For example to create a space above the table in each page (so that I can put some fixed position items that exist in the table header.) I add a thead to the table and I make it invisible (by `visibility`) and give its internal tr a height. It works alright. I wanna do the same for the bottom of the table via a tfoot tag, but the tfoot only appears in last page so there's no way to make a margin for the table in all pages. (I can't apply a global margin as I need to put some fixed position elements there.)
 

Comment 1 by sass...@gmail.com, Oct 15 2016

You can check this page: https://www.mhelli.com/static/t.html. In the print preview, header appears in all pages, but footer appears only in last page.
Cc: dgro...@chromium.org robhogan@chromium.org
Components: -Blink>Layout Blink>Layout>Table
Labels: -OS-Mac OS-All
Status: Available (was: Unconfirmed)
Edge 25.10586.0.0: Has footer on all pages
Firefox nightly 2016-09-19 and 2016-10-17: Also has footer on all pages

Chrome Canary 56.0.2889.0 and 56.0.2891.0 (Windows) and 55.0.2883.11 dev (Linux): Footer only on last page
Alkso, not a regression, broken since at least Version 43.0.2329.0 (64-bit)

Cc: msten...@opera.com

Comment 5 by sass...@gmail.com, Nov 2 2016

I hope it's not one of those bugs that takes a comment like "now it's 2022, it's been 6 years and no update."

Comment 6 by robho...@gmail.com, Nov 2 2016

Owner: robhogan@chromium.org
Once I've fixed the bugs from repeating headers I'll do this one too.

In other words never fear muggins is here!😁

Comment 7 by sass...@gmail.com, Nov 2 2016

Oh thanks, I just thought it's forgotten. no rush :-)
Mergedinto: 620223
Status: Duplicate (was: Available)
Blocking: 692875
Blocking: 710378
Status: Started (was: Duplicate)
Cc: ryande...@gmail.com
 Issue 620223  has been merged into this issue.
Any updates on it? :) Thanks
Project Member

Comment 14 by bugdroid1@chromium.org, Aug 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3

commit a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3
Author: robhogan <robhogan@gmail.com>
Date: Sat Aug 05 16:43:53 2017

Repeat footers in paginated context

BUG= 656232 , 620223 

CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2

Review-Url: https://codereview.chromium.org/2584143003
Cr-Commit-Position: refs/heads/master@{#492243}

[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-2-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-2.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-3-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-3.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-4-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-4.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-multiple-tables-caption-repeating-thead-tfoot-with-border-spacing-at-top-of-row.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-nested-repeating-tfoot-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-nested-repeating-tfoot.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-2-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-2.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-3-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-3.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-4-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-4.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-nested-repeating-thead-tfoot.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-tfoot-rows-allowing-break-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-tfoot-rows-allowing-break.html
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-cell-straddles-page-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-cell-straddles-page-unsplittable-div-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-cell-straddles-page-unsplittable-div.html
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-cell-straddles-page.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-break-after-avoid-2-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-break-after-avoid-2.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-break-after-avoid-3-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-break-after-avoid-3.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-break-after-avoid-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-break-after-avoid.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-starts-middle-of-page.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-with-border-spacing-at-top-of-row-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-with-border-spacing-at-top-of-row.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-with-caption-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-with-caption.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-with-two-captions-expected.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot-with-two-captions.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/fragmentation/single-line-cells-repeating-thead-tfoot.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/printing/tfoot-repeats-at-bottom-of-each-page-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/printing/tfoot-repeats-at-bottom-of-each-page-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/linux/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/printing/tfoot-repeats-at-bottom-of-each-page-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/printing/tfoot-repeats-at-bottom-of-each-page-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/mac/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/printing/tfoot-repeats-at-bottom-of-each-page-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/printing/tfoot-repeats-at-bottom-of-each-page-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.png
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/platform/win/virtual/threaded/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables-expected.txt
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/printing/tfoot-repeats-at-bottom-of-each-page-multiple-tables.html
[add] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/LayoutTests/printing/tfoot-repeats-at-bottom-of-each-page.html
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/css/html.css
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutBox.cpp
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutState.cpp
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutState.h
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutTable.cpp
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutTable.h
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/layout/LayoutTableSection.h
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/paint/CollapsedBorderPainter.cpp
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp
[modify] https://crrev.com/a098f68e0de0ba6a40f2524e0f4b437f76c6e9a3/third_party/WebKit/Source/core/paint/TableSectionPainter.h

Status: Fixed (was: Started)
Not fixed in Chrome 61.0.3163.100 (Official Build) (64-bit) (OS X 10.13)
This was working for me (middle September 2017, not sure which version I had then) but now is not working again as Comment 16 above notes in 61.0.3163.100 (Offizieller Build) (64-Bit).

Comment 18 Deleted

I have checked development version (v63). This bug is fixed, so I think we just need to wait, until new version will be released.
Hi folks, checking in on this bug. Running 66.0.3359.139 stable, I still only see the footer on the last page
perpes -- could you open a new bug with a minimal reproduction case that demonstrates what you're seeing?
Cc: brajkumar@chromium.org
 Issue 677493  has been merged into this issue.

Sign in to add a comment