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

HI there,

https://drafts.csswg.org/css-tables-3/#repeated-headers now says:

"When rendering the document into a paged media, user agents must repeat header
rows <https://drafts.csswg.org/css-tables-3/#table-header-group> and footer
rows <https://drafts.csswg.org/css-tables-3/#table-footer-group> on each
page spanned by a table if the page is the table’s fragmentainer, if the
header/footer has avoid break-inside
<https://drafts.csswg.org/css-break-3/#propdef-break-inside> applied to it,
if the height required to do so is inferior to two quarters of the page
height (up to one quarter for header rows, and up to one quarter for footer
rows), and* if that doesn’t cause a row to be displayed twice on that page*
."

What is the text in bold referring to? I can't work out how displaying a
row twice on the same page would come about.

Thanks,
Rob

On Sat, Jan 7, 2017 at 4:14 AM François REMY <francois.remy.dev@outlook.com>
wrote:

> On Jan 7, 2017, at 06:04, François REMY <francois.remy.dev@outlook.com>
> wrote:
>
>
>
> 3.       If the last row that did partially fit in the fragmentainer was
> a tbody or tfoot row restart fragmentation in that fragmentainer with the
> tfoot being repeated at its bottom and therefore a reduced vertical space.
> If that doesn’t leave enough vertical space in the fragmentainer to contain
> at least partially one tbody row (or if the last row that did partially fit
> in the fragmentainer was a tfoot row), return to the previous fragmentation
> without the repeated tfoot; otherwise keep this new fragmentation. In both
> cases, continue to the next step.
>
> “with the tfoot being repeated at its bottom” shouldn't that be “with
> **all** tfoot being repeated at its bottom”?
>
>
>
> I assume the repeat behavior is always all or nothing, you can’t get
> partial repetition. If the rows are included due to normal flow, this isn’t
> a repetition (in short “repeated” does not include the original).
>
>
>
> I don't remember for sure, but I think I meant that if you had multiple
> tfoot elements (not multiple rows in a tfoot), you're repeat them all.
> However, that's not what browsers do, so never mind.
>
>
>
> —Florian
>
>
>
> Yes, and that is in the spec as well:
>
>
>
> If a table owns multiple display:table-header-group boxes, only the first
> is treated as a header; the others are treated as if they had
> display:table-row-group.
> https://drafts.csswg.org/css-tables-3/#table-header-group
>

Received on Sunday, 30 April 2017 20:43:06 UTC