diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-17 00:17:28 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-17 00:17:28 +0200 |
| commit | 9a798ce6f6e734a02764473891632c071fed41ee (patch) | |
| tree | cb433d5b6309f55799749c19eec8579d86bf36b2 /tests | |
| parent | 9462fb17b390c57846b9215217ca7c32b649f0a5 (diff) | |
Make percentages for h and v relative to area instead of font size
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/spacing.png | bin | 2527 -> 1864 bytes | |||
| -rw-r--r-- | tests/typ/layout/spacing.typ | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/ref/layout/spacing.png b/tests/ref/layout/spacing.png Binary files differindex b2b8707d..c5a1bb80 100644 --- a/tests/ref/layout/spacing.png +++ b/tests/ref/layout/spacing.png diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ index bd670edb..3794612c 100644 --- a/tests/typ/layout/spacing.typ +++ b/tests/typ/layout/spacing.typ @@ -10,8 +10,9 @@ Inv #h(0pt) isible // Multiple spacings in a row. Add #h(10pt) #h(10pt) up -// Relative to font size. -Relative #h(100%) spacing +// Relative to area. +#let x = 25% - 4pt +| #h(x) | #h(x) | #h(x) | #h(x) | --- // Missing spacing. |
