summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-12 21:14:21 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-12 21:14:21 +0100
commitd99359dede8f366fc16d38c6166b97a0f56fe0cb (patch)
tree862ae2d48efb782f8061964302b4719b57f44618 /tests
parentd689d706eaf3079877406e71b0d642623c9eb230 (diff)
Add `baseline` argument to `box`
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/text/baseline.pngbin6168 -> 29069 bytes
-rw-r--r--tests/typ/text/baseline.typ5
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/ref/text/baseline.png b/tests/ref/text/baseline.png
index f011c8c4..c28b454a 100644
--- a/tests/ref/text/baseline.png
+++ b/tests/ref/text/baseline.png
Binary files differ
diff --git a/tests/typ/text/baseline.typ b/tests/typ/text/baseline.typ
index 57963195..c19e3c63 100644
--- a/tests/typ/text/baseline.typ
+++ b/tests/typ/text/baseline.typ
@@ -1,4 +1,4 @@
-// Test text baseline.
+// Test baseline handling.
---
Hi #text(1.5em)[You], #text(0.75em)[how are you?]
@@ -7,3 +7,6 @@ Our cockatoo was one of the
#text(baseline: -0.2em)[#box(circle(radius: 2pt)) first]
#text(baseline: 0.2em)[birds #box(circle(radius: 2pt))]
that ever learned to mimic a human voice.
+
+---
+Hey #box(baseline: 40%, image("/tiger.jpg", width: 1.5cm)) there!