diff options
Diffstat (limited to 'tests/suite/layout/stack.typ')
| -rw-r--r-- | tests/suite/layout/stack.typ | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/suite/layout/stack.typ b/tests/suite/layout/stack.typ index 1eca52c9..aad273a5 100644 --- a/tests/suite/layout/stack.typ +++ b/tests/suite/layout/stack.typ @@ -80,3 +80,12 @@ World! 🌍 stack([a], 1fr, [b]), stack([a], v(1fr), [b]), ) + +--- issue-1918-stack-with-infinite-spacing --- +// https://github.com/typst/typst/issues/1918 +#set page(width: auto) +#context layout(available => { + let infinite-length = available.width + // Error: 3-40 stack spacing is infinite + stack(spacing: infinite-length)[A][B] +}) |
