diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-31 13:51:28 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-31 13:51:28 +0100 |
| commit | 564cb7e989fcbc6ef3d55a17f9b38faba9f80c4f (patch) | |
| tree | c5e44b8e88f0fd082e7d231a521b7375c2b9703a /tests | |
| parent | 4645d1a517560fc2efbdb4791df176b670eef8f4 (diff) | |
Fix panic in pad node
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/layout/pad.png | bin | 52073 -> 52232 bytes | |||
| -rw-r--r-- | tests/typ/layout/pad.typ | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ref/layout/pad.png b/tests/ref/layout/pad.png Binary files differindex cdf08c78..4d381ce2 100644 --- a/tests/ref/layout/pad.png +++ b/tests/ref/layout/pad.png diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ index bce13d42..3729761a 100644 --- a/tests/typ/layout/pad.typ +++ b/tests/typ/layout/pad.typ @@ -27,9 +27,11 @@ Hi #box(pad(left: 10pt)[]) there --- // Test that the pad node doesn't consume the whole region. - #page(height: 6cm) - #align(left)[Before] #pad(10pt, image("../../res/tiger.jpg")) #align(right)[After] + +--- +// Test that padding adding up to 100% does not panic. +#pad(50%)[] |
