W3C home > Mailing lists > Public > www-style@w3.org > December 2016

[css-tables] Dropping repeated headers/footers when one content row doesn't fit

From: Robert Hogan <robhogan@gmail.com>
Date: Tue, 20 Dec 2016 10:19:07 +0000
Message-ID: <CAD1xn+NyxMaknPfmza-8r2XuxWe__a=x+p2oog0cJZk1BCxN5g@mail.gmail.com>
To: www-style list <www-style@w3.org>
Hi there,

The text in https://drafts.csswg.org/css-tables-3/#repeated-headers says
that we should drop the repeated footers and headers if it would prevent a
content-row fitting on the page.

My implementation in Blink is pretty naive - and just applies this rule to
the first page: if at least one content-row doesn't fit on the page after
the header group it drops the repeated headers. It will do the same once we
add footers.

Am I right in thinking that intention of the spec is to apply the rule on a
page-by-page basis? So if we have a content-row on a page that needs to
drop the footer in order to fit we should just drop the footer for that
page? And likewise if it also needs to drop the header?

In the case where a row straddles more than one page I'm planning to fix a
bug in Blink which handles this situation badly by repeating the header on
the pages the content-row straddles but just push the content of the cell
below it. Firefox does it this way currently and it looks like the common
sense rendering to me.

Received on Tuesday, 20 December 2016 10:20:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:09:05 UTC