summaryrefslogtreecommitdiff
path: root/tests/typ/elements
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-29 13:12:50 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-29 13:12:50 +0100
commitcae60ea0cc818b570435c92d081f734109c9c52e (patch)
treefa1711ce7a156f645b70c45d8eba37294e8a449c /tests/typ/elements
parente36b8ed374423816876273f30b77eee38cb8b74c (diff)
Go back to wrapping inline nodes
Diffstat (limited to 'tests/typ/elements')
-rw-r--r--tests/typ/elements/ellipse.typ4
-rw-r--r--tests/typ/elements/image.typ8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/typ/elements/ellipse.typ b/tests/typ/elements/ellipse.typ
index 47f6d0e1..39c73a6f 100644
--- a/tests/typ/elements/ellipse.typ
+++ b/tests/typ/elements/ellipse.typ
@@ -7,8 +7,8 @@
---
Rect in ellipse in fixed rect. \
#rect(width: 3cm, height: 2cm, fill: rgb("2a631a"),
- ellipse(fill: forest,
- rect(fill: conifer,
+ ellipse(fill: forest, width: 100%, height: 100%,
+ rect(fill: conifer, width: 100%, height: 100%,
align(center + horizon)[
Stuff inside an ellipse!
]
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
index 9d192b40..0fce4295 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/elements/image.typ
@@ -27,12 +27,12 @@
// Test all three fit modes.
#page(height: 50pt, margins: 0pt)
#grid(
- columns: 3,
+ columns: (1fr, 1fr, 1fr),
rows: 100%,
gutter: 3pt,
- image("../../res/tiger.jpg", fit: "contain"),
- image("../../res/tiger.jpg", fit: "cover"),
- image("../../res/tiger.jpg", fit: "stretch"),
+ 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"),
)
---