summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-05 20:05:15 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-05 20:05:15 +0200
commitb69c0355ecda6a2da275cac42fcb0dfa9e31581b (patch)
tree7cc9ee9de4ce834f4b123459acbdd65fc65d8713 /tests/typ
parent3d0dcbea182f6a81539c12c9d5156cf0f6863b67 (diff)
Don't fit images to remaining height
Makes them really small if there's only little space left ...
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/elements/image.typ14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
index 6359c4bb..c0e6a3ef 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/elements/image.typ
@@ -13,15 +13,6 @@
---
// Test configuring the size and fitting behaviour of images.
-// Fit to width of page.
-#image("../../res/rhino.png")
-
-// Fit to height of page.
-[
- #page(height: 40pt)
- #image("../../res/rhino.png")
-]
-
// Set width explicitly.
#image("../../res/rhino.png", width: 50pt)
@@ -36,6 +27,11 @@
#image("../../res/tiger.jpg", width: 60pt)
---
+// Does not fit to height of page.
+#page(height: 60pt)
+#image("../../res/rhino.png")
+
+---
// Error: 8-29 file not found
#image("path/does/not/exist")