summaryrefslogtreecommitdiff
path: root/tests/typ/bugs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-13 12:28:30 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-13 13:44:28 +0200
commit8fb225feb4a10a916c239faaa130cf5aae164284 (patch)
treee6caa005cd9a63bf69c1999c41a665b9adcdb234 /tests/typ/bugs
parent8927f3d572100377f2feb466b81a8700f0ee3a28 (diff)
Fix box in 100% width block
Fixes #2128
Diffstat (limited to 'tests/typ/bugs')
-rw-r--r--tests/typ/bugs/block-width-box.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/typ/bugs/block-width-box.typ b/tests/typ/bugs/block-width-box.typ
new file mode 100644
index 00000000..a039bc66
--- /dev/null
+++ b/tests/typ/bugs/block-width-box.typ
@@ -0,0 +1,6 @@
+// Test box in 100% width block.
+
+---
+#block(width: 100%, fill: red, box("a box"))
+
+#block(width: 100%, fill: red, [#box("a box") #box()])