summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-08 17:55:44 +0200
committerLaurenz <laurmaedje@gmail.com>2024-10-15 15:06:36 +0200
commit0253c3d8836079697ceee9690bba08c29d6828a4 (patch)
tree063624b925a9ae516add7944345adead636c1ec0 /tests
parent0abd417640bbb8d98c937293a4960ac3ec8a5b50 (diff)
Allow unbreakable multi-layouters to expand (#5162)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-5160-unbreakable-pad.pngbin0 -> 145 bytes
-rw-r--r--tests/suite/layout/pad.typ4
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ref/issue-5160-unbreakable-pad.png b/tests/ref/issue-5160-unbreakable-pad.png
new file mode 100644
index 00000000..f370870a
--- /dev/null
+++ b/tests/ref/issue-5160-unbreakable-pad.png
Binary files differ
diff --git a/tests/suite/layout/pad.typ b/tests/suite/layout/pad.typ
index 4ff9f8ec..e9830cf7 100644
--- a/tests/suite/layout/pad.typ
+++ b/tests/suite/layout/pad.typ
@@ -32,3 +32,7 @@ Hi #box(pad(left: 10pt)[A]) there
--- issue-5044-pad-100-percent ---
#set page(width: 30pt, height: 30pt)
#pad(100%, block(width: 1cm, height: 1cm, fill: red))
+
+--- issue-5160-unbreakable-pad ---
+#set block(breakable: false)
+#block(width: 100%, pad(x: 20pt, align(right)[A]))