diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-05 20:05:15 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-05 20:05:15 +0200 |
| commit | b69c0355ecda6a2da275cac42fcb0dfa9e31581b (patch) | |
| tree | 7cc9ee9de4ce834f4b123459acbdd65fc65d8713 /tests | |
| parent | 3d0dcbea182f6a81539c12c9d5156cf0f6863b67 (diff) | |
Don't fit images to remaining height
Makes them really small if there's only little space left ...
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/elements/image.png | bin | 219541 -> 209747 bytes | |||
| -rw-r--r-- | tests/typ/elements/image.typ | 14 |
2 files changed, 5 insertions, 9 deletions
diff --git a/tests/ref/elements/image.png b/tests/ref/elements/image.png Binary files differindex 6848726f..943d43b1 100644 --- a/tests/ref/elements/image.png +++ b/tests/ref/elements/image.png diff --git a/tests/typ/elements/image.typ b/tests/typ/elements/image.typ index 6359c4bb..c0e6a3ef 100644 --- a/tests/typ/elements/image.typ +++ b/tests/typ/elements/image.typ @@ -13,15 +13,6 @@ --- // Test configuring the size and fitting behaviour of images. -// Fit to width of page. -#image("../../res/rhino.png") - -// Fit to height of page. -[ - #page(height: 40pt) - #image("../../res/rhino.png") -] - // Set width explicitly. #image("../../res/rhino.png", width: 50pt) @@ -36,6 +27,11 @@ #image("../../res/tiger.jpg", width: 60pt) --- +// Does not fit to height of page. +#page(height: 60pt) +#image("../../res/rhino.png") + +--- // Error: 8-29 file not found #image("path/does/not/exist") |
