summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-12-02 14:48:12 +0100
committerLaurenz <laurmaedje@gmail.com>2021-12-02 14:48:12 +0100
commitbfa9962632dd3c2e9110f9c3667d7e3cf6b133d4 (patch)
treec48de05a4ae1e5c97eb4f6ddc9ede32ee65cf3ef /tests/typ
parentf3bdc9d3daca2c26c4cc745be48a5ce1c8a10641 (diff)
Remove baseline weirdness
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/elements/image.typ4
-rw-r--r--tests/typ/layout/aspect.typ12
-rw-r--r--tests/typ/text/baseline.typ4
3 files changed, 12 insertions, 8 deletions
diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ
index 0fce4295..5fd121e3 100644
--- a/tests/typ/elements/image.typ
+++ b/tests/typ/elements/image.typ
@@ -43,6 +43,10 @@ Stuff
#image("../../res/rhino.png")
---
+// Test baseline.
+A #image("../../res/tiger.jpg", height: 1cm, width: 80%) B
+
+---
// Error: 8-29 file not found
#image("path/does/not/exist")
diff --git a/tests/typ/layout/aspect.typ b/tests/typ/layout/aspect.typ
index c0db17e0..c9b8ee41 100644
--- a/tests/typ/layout/aspect.typ
+++ b/tests/typ/layout/aspect.typ
@@ -11,14 +11,10 @@
---
// Test alignment in automatically sized square and circle.
#font(8pt)
-#grid(
- columns: 2,
- gutter: 10pt,
- square(padding: 4pt)[
- Hey there, #align(center + bottom, rotate(180deg, [you!]))
- ],
- circle(align(center + horizon, [Hey.])),
-)
+#square(padding: 4pt)[
+ Hey there, #align(center + bottom, rotate(180deg, [you!]))
+]
+#circle(align(center + horizon, [Hey.]))
---
// Test that maximum wins if both width and height are given.
diff --git a/tests/typ/text/baseline.typ b/tests/typ/text/baseline.typ
new file mode 100644
index 00000000..f22fce08
--- /dev/null
+++ b/tests/typ/text/baseline.typ
@@ -0,0 +1,4 @@
+// Test text baseline.
+
+---
+Hi #font(150%)[You], #font(75%)[how are you?]