summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/pad.pngbin52073 -> 52232 bytes
-rw-r--r--tests/typ/layout/pad.typ6
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ref/layout/pad.png b/tests/ref/layout/pad.png
index cdf08c78..4d381ce2 100644
--- a/tests/ref/layout/pad.png
+++ b/tests/ref/layout/pad.png
Binary files differ
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ
index bce13d42..3729761a 100644
--- a/tests/typ/layout/pad.typ
+++ b/tests/typ/layout/pad.typ
@@ -27,9 +27,11 @@ Hi #box(pad(left: 10pt)[]) there
---
// Test that the pad node doesn't consume the whole region.
-
#page(height: 6cm)
-
#align(left)[Before]
#pad(10pt, image("../../res/tiger.jpg"))
#align(right)[After]
+
+---
+// Test that padding adding up to 100% does not panic.
+#pad(50%)[]