summaryrefslogtreecommitdiff
path: root/tests/typ/visualize/image.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 18:58:39 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 19:57:28 +0100
commit3ffa7393f0632d9ee5dd9c821685a1a033d5c0ab (patch)
treeaf09b0683352c4028436a2e5251dce54cf41d4aa /tests/typ/visualize/image.typ
parentf4856c18b9cf3f6952276cc61b557aebeb2fa651 (diff)
Make all nodes block-level
Diffstat (limited to 'tests/typ/visualize/image.typ')
-rw-r--r--tests/typ/visualize/image.typ7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/typ/visualize/image.typ b/tests/typ/visualize/image.typ
index 89381955..4b3d390f 100644
--- a/tests/typ/visualize/image.typ
+++ b/tests/typ/visualize/image.typ
@@ -14,8 +14,8 @@
// Test configuring the size and fitting behaviour of images.
// Set width and height explicitly.
-#image("/rhino.png", width: 30pt)
-#image("/rhino.png", height: 30pt)
+#box(image("/rhino.png", width: 30pt))
+#box(image("/rhino.png", height: 30pt))
// Set width and height explicitly and force stretching.
#image("/monkey.svg", width: 100%, height: 20pt, fit: "stretch")
@@ -38,13 +38,12 @@
---
// Does not fit to remaining height of page.
#set page(height: 60pt)
-Stuff #parbreak()
Stuff
#image("/rhino.png")
---
// Test baseline.
-A #image("/tiger.jpg", height: 1cm, width: 80%) B
+A #box(image("/tiger.jpg", height: 1cm, width: 80%)) B
---
// Test advanced SVG features.