summaryrefslogtreecommitdiff
path: root/tests/typ/elements/image.typ
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2021-12-06 14:58:57 +0100
committerMartin Haug <mhaug@live.de>2021-12-06 14:58:57 +0100
commitf15ee7efb68eff188b5993d21d663e2120b5dd08 (patch)
tree4cd7afa806c62a55234f359ad46177266093d7ee /tests/typ/elements/image.typ
parent2982020480fc3d9061e26ca24dd467f315981dff (diff)
Add SVG capabilities
Diffstat (limited to 'tests/typ/elements/image.typ')
-rw-r--r--tests/typ/elements/image.typ8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
index 5fd121e3..7fddb12d 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/elements/image.typ
@@ -18,7 +18,7 @@
#image("../../res/rhino.png", height: 30pt)
// Set width and height explicitly and force stretching.
-#image("../../res/tiger.jpg", width: 100%, height: 20pt, fit: "stretch")
+#image("../../res/monkey.svg", width: 100%, height: 20pt, fit: "stretch")
// Make sure the bounding-box of the image is correct.
#align(bottom + right, image("../../res/tiger.jpg", width: 40pt))
@@ -32,7 +32,7 @@
gutter: 3pt,
image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "contain"),
image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "cover"),
- image("../../res/tiger.jpg", width: 100%, height: 100%, fit: "stretch"),
+ image("../../res/monkey.svg", width: 100%, height: 100%, fit: "stretch"),
)
---
@@ -47,6 +47,10 @@ Stuff
A #image("../../res/tiger.jpg", height: 1cm, width: 80%) B
---
+// Test advanced SVG features.
+#image("../../res/pattern.svg")
+
+---
// Error: 8-29 file not found
#image("path/does/not/exist")