summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-08 15:13:14 +0200
committerLaurenz <laurmaedje@gmail.com>2024-10-15 15:06:36 +0200
commit0abd417640bbb8d98c937293a4960ac3ec8a5b50 (patch)
tree8b0f4f3e211e49befe82c11947e0c770d0eb57a8 /tests
parentf8a218f59755e83d215f035c942c122fcef27abd (diff)
Allow sticky blocks to be breakable (#5161)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/block-sticky-breakable.pngbin0 -> 405 bytes
-rw-r--r--tests/suite/layout/container.typ6
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/block-sticky-breakable.png b/tests/ref/block-sticky-breakable.png
new file mode 100644
index 00000000..91287a7e
--- /dev/null
+++ b/tests/ref/block-sticky-breakable.png
Binary files differ
diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ
index d054175a..e1367967 100644
--- a/tests/suite/layout/container.typ
+++ b/tests/suite/layout/container.typ
@@ -180,6 +180,12 @@ A
#colbreak()
C
+--- block-sticky-breakable ---
+// Ensure that sticky blocks are still breakable.
+#set page(height: 60pt)
+#block(sticky: true, lines(4))
+E
+
--- box-clip-rect ---
// Test box clipping with a rectangle
Hello #box(width: 1em, height: 1em, clip: false)[#rect(width: 3em, height: 3em, fill: red)]