diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/suite/layout/inline/baseline.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/suite/layout/inline/baseline.typ')
| -rw-r--r-- | tests/suite/layout/inline/baseline.typ | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/suite/layout/inline/baseline.typ b/tests/suite/layout/inline/baseline.typ new file mode 100644 index 00000000..e9f9a645 --- /dev/null +++ b/tests/suite/layout/inline/baseline.typ @@ -0,0 +1,17 @@ +// Test baseline handling. + +--- baseline-text --- +Hi #text(1.5em)[You], #text(0.75em)[how are you?] + +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. + +--- baseline-box --- +Hey #box(baseline: 40%, image("/assets/images/tiger.jpg", width: 1.5cm)) there! + +--- issue-2214-baseline-math --- +// The math content should also be affected by the TextElem baseline. +hello #text(baseline: -5pt)[123 #sym.WW\orld]\ +hello #text(baseline: -5pt)[$123 WW#text[or]$ld]\ |
