mirror of
https://github.com/typst/typst
synced 2025-05-21 04:25:28 +08:00
header and rowspan tests
This commit is contained in:
parent
3fa425dc83
commit
19b583ddb7
BIN
tests/ref/grid-header-and-large-auto-contiguous.png
Normal file
BIN
tests/ref/grid-header-and-large-auto-contiguous.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 894 B |
BIN
tests/ref/grid-header-and-rowspan-contiguous-1.png
Normal file
BIN
tests/ref/grid-header-and-rowspan-contiguous-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 815 B |
BIN
tests/ref/grid-header-and-rowspan-contiguous-2.png
Normal file
BIN
tests/ref/grid-header-and-rowspan-contiguous-2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 869 B |
@ -279,6 +279,51 @@
|
||||
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 ---
|
||||
// Test lack of space for header + text.
|
||||
#set page(height: 8em)
|
||||
|
Loading…
x
Reference in New Issue
Block a user