summaryrefslogtreecommitdiff
path: root/tests/typ/bugs/3641-float-loop.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-03-13 14:46:00 +0100
committerGitHub <noreply@github.com>2024-03-13 13:46:00 +0000
commit7c61ccac71fbdc4fd6fe905f86703b48a53c8d06 (patch)
tree3b9930681c7ce129297eed969ed4c95f2b817749 /tests/typ/bugs/3641-float-loop.typ
parent28012b2f8dbbaf8ae168c7afd33f2f9e00a7d840 (diff)
Fix non-terminating loop in flow layout (#3652)
Diffstat (limited to 'tests/typ/bugs/3641-float-loop.typ')
-rw-r--r--tests/typ/bugs/3641-float-loop.typ11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/typ/bugs/3641-float-loop.typ b/tests/typ/bugs/3641-float-loop.typ
new file mode 100644
index 00000000..4021fb4f
--- /dev/null
+++ b/tests/typ/bugs/3641-float-loop.typ
@@ -0,0 +1,11 @@
+// Flow layout should terminate!
+// https://github.com/typst/typst/issues/3641
+//
+// This is not yet ideal: The heading should not move to the second page, but
+// that's a separate bug and not a regression.
+
+---
+#set page(height: 40pt)
+
+= Heading
+#lorem(6)