summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-08 15:13:14 +0200
committerGitHub <noreply@github.com>2024-10-08 13:13:14 +0000
commitfc5858c98256b32eca798a0df1bf96f426416bd2 (patch)
tree732716b713c5e098babbc13e988914a5fdfef4b6 /tests
parent7a96c86487fe2eb35d88bd8314b26feec6118898 (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)]