summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-08 17:55:44 +0200
committerGitHub <noreply@github.com>2024-10-08 15:55:44 +0000
commitb7725a7442a0d92ed6e1b4851e33979f9e340283 (patch)
tree6c2bb20adae0311ca6076197a98bb7b262e733bd /tests
parentfc5858c98256b32eca798a0df1bf96f426416bd2 (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]))