From 9bd8b7ddac046f581dc750e148147901d08cb0f4 Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Sun, 27 Jun 2021 18:06:39 +0200 Subject: Code review, new stack test --- tests/typ/layout/stack.typ | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/typ/layout/stack.typ') diff --git a/tests/typ/layout/stack.typ b/tests/typ/layout/stack.typ index 006a1412..50ed1eb1 100644 --- a/tests/typ/layout/stack.typ +++ b/tests/typ/layout/stack.typ @@ -7,3 +7,12 @@ rect(3cm, forest), rect(1cm, conifer), ) + +--- + +#let rect(width, color) = rect(width: 1cm, height: 0.4cm, fill: color) +// This stack overflows. +#box(height: 0.5cm, stack( + rect(3cm, forest), + rect(1cm, conifer), +)) -- cgit v1.2.3