From 48820fe69b8061bd949847afc343bf160d05c924 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Wed, 13 Mar 2024 06:15:16 -0300 Subject: Fix table cells and rowspans wrongly assuming full page height available (#3637) --- tests/typ/layout/grid-rowspan-basic.typ | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/typ/layout/grid-rowspan-basic.typ') diff --git a/tests/typ/layout/grid-rowspan-basic.typ b/tests/typ/layout/grid-rowspan-basic.typ index 1cc7289b..bbd1c047 100644 --- a/tests/typ/layout/grid-rowspan-basic.typ +++ b/tests/typ/layout/grid-rowspan-basic.typ @@ -230,3 +230,23 @@ [f], [g] ) + +--- +// Block below shouldn't expand to the end of the page, but stay within its +// rows' boundaries. +#set page(height: 9em) +#table( + rows: (1em, 1em, 1fr, 1fr, auto), + table.cell(rowspan: 2, block(width: 2em, height: 100%, fill: red)), + table.cell(rowspan: 2, block(width: 2em, height: 100%, fill: red)), + [a] +) + +--- +#set page(height: 7em) +#table( + columns: 3, + [], [], table.cell(breakable: true, rowspan: 2, block(width: 2em, height: 100%, fill: red)), + table.cell(breakable: false, block(width: 2em, height: 100%, fill: red)), + table.cell(breakable: false, rowspan: 2, block(width: 2em, height: 100%, fill: red)), +) -- cgit v1.2.3