summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-12-07 00:10:05 +0100
committerGitHub <noreply@github.com>2021-12-07 00:10:05 +0100
commit1b67887db0c2f2cd17d60d70c83d56e9e81f4a41 (patch)
tree7930718d6dbdf92d1feaa92df97830ef3dfc4ed5 /tests/typ
parent2982020480fc3d9061e26ca24dd467f315981dff (diff)
parent7c829c5c1b67ac8e8fbe4fc4ba01468d100bfb47 (diff)
Merge pull request #49 from typst/svg
Add SVG capabilities
Diffstat (limited to 'tests/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")