summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-30 14:36:34 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-30 14:36:34 +0200
commitf90fcd664bd64e4c7fd996e8d0825e7031625763 (patch)
tree68a6885cb77607036fe9ed22eee019211f987fe3 /tests
parent87ee97ae5e4f557034bad98e5aec770f5c5a0f35 (diff)
Fix pagebreak before `place`
Fixes #1368
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/place-pagebreak.pngbin0 -> 978 bytes
-rw-r--r--tests/typ/bugs/place-pagebreak.typ7
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/ref/bugs/place-pagebreak.png b/tests/ref/bugs/place-pagebreak.png
new file mode 100644
index 00000000..2aa3d6b0
--- /dev/null
+++ b/tests/ref/bugs/place-pagebreak.png
Binary files differ
diff --git a/tests/typ/bugs/place-pagebreak.typ b/tests/typ/bugs/place-pagebreak.typ
new file mode 100644
index 00000000..bc04af1a
--- /dev/null
+++ b/tests/typ/bugs/place-pagebreak.typ
@@ -0,0 +1,7 @@
+// Test placing on an already full page.
+// It shouldn't result in a page break.
+
+---
+#set page(height: 40pt)
+#block(height: 100%)
+#place(bottom + right)[Hello world]