summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/pagebreak-parity.pngbin0 -> 3897 bytes
-rw-r--r--tests/typ/layout/pagebreak-parity.typ23
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/ref/layout/pagebreak-parity.png b/tests/ref/layout/pagebreak-parity.png
new file mode 100644
index 00000000..af08bac1
--- /dev/null
+++ b/tests/ref/layout/pagebreak-parity.png
Binary files differ
diff --git a/tests/typ/layout/pagebreak-parity.typ b/tests/typ/layout/pagebreak-parity.typ
new file mode 100644
index 00000000..4d6ae941
--- /dev/null
+++ b/tests/typ/layout/pagebreak-parity.typ
@@ -0,0 +1,23 @@
+// Test clearing to even or odd pages.
+
+---
+#set page(width: 80pt, height: 30pt)
+First
+#pagebreak(to: "odd")
+Third
+#pagebreak(to: "even")
+Fourth
+#pagebreak(to: "even")
+Sixth
+#pagebreak()
+Seventh
+#pagebreak(to: "odd")
+#page[Nineth]
+
+---
+#set page(width: auto, height: auto)
+
+// Test with auto-sized page.
+First
+#pagebreak(to: "odd")
+Third