header and rowspan tests

This commit is contained in:
PgBiel 2025-05-16 04:07:13 -03:00
parent 3fa425dc83
commit 19b583ddb7
4 changed files with 45 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 869 B

View File

@ -279,6 +279,51 @@
table.cell(rowspan: 3, lines(15)) table.cell(rowspan: 3, lines(15))
) )
--- grid-header-and-rowspan-contiguous-1 ---
// Block should occupy all space
#set page(height: 15em)
#table(
rows: (auto, 2.5em, 2em, auto),
gutter: 3pt,
inset: 0pt,
table.header(
[*H*],
[*W*]
),
table.cell(rowspan: 3, block(height: 2.5em + 2em + 20em, width: 100%, fill: red))
)
--- grid-header-and-rowspan-contiguous-2 ---
// Block should occupy all space
#set page(height: 15em)
#table(
rows: (auto, 2.5em, 10em, 5em, auto),
gutter: 3pt,
inset: 0pt,
table.header(
[*H*],
[*W*]
),
table.cell(rowspan: 3, block(height: 2.5em + 2em + 20em, width: 100%, fill: red))
)
--- grid-header-and-large-auto-contiguous ---
// Block should occupy all space
#set page(height: 15em)
#table(
rows: (auto, 4.5em, auto),
gutter: 3pt,
inset: 0pt,
table.header(
[*H*],
[*W*]
),
block(height: 2.5em + 2em + 20em, width: 100%, fill: red)
)
--- grid-header-lack-of-space --- --- grid-header-lack-of-space ---
// Test lack of space for header + text. // Test lack of space for header + text.
#set page(height: 8em) #set page(height: 8em)