diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-12 12:15:03 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-12 12:57:35 +0100 |
| commit | 8951b1923a581f7454ddf4dbe3e55f69ce5799f9 (patch) | |
| tree | 86ba96f9f83ca3983bddf13ad37df2469877720d /tests/typ | |
| parent | e873468ea7deedd6d43f24100591c60a7de5accc (diff) | |
Skip grid region if one cell is empty
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/bugs/grid-2.typ | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/typ/bugs/grid-2.typ b/tests/typ/bugs/grid-2.typ new file mode 100644 index 00000000..bdcdf548 --- /dev/null +++ b/tests/typ/bugs/grid-2.typ @@ -0,0 +1,18 @@ +// Grid now skips a remaining region when one of the cells +// doesn't fit into it at all. + +--- +#set page(height: 100pt) +#grid( + columns: (2cm, auto), + rows: (auto, auto), + rect(width: 100%, fill: red), + rect(width: 100%, fill: blue), + rect(width: 100%, height: 80%, fill: green), + [Hello], +) + +--- +#set page(height: 60pt) +#lorem(5) +- #lorem(5) |
