diff options
Diffstat (limited to 'tests/typ/layout/pad.typ')
| -rw-r--r-- | tests/typ/layout/pad.typ | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ deleted file mode 100644 index 0eff5876..00000000 --- a/tests/typ/layout/pad.typ +++ /dev/null @@ -1,30 +0,0 @@ -// Test the `pad` function. - ---- -// Use for indentation. -#pad(left: 10pt, [Indented!]) - -// All sides together. -#set rect(inset: 0pt) -#rect(fill: conifer, - pad(10pt, right: 20pt, - rect(width: 20pt, height: 20pt, fill: rgb("eb5278")) - ) -) - -Hi #box(pad(left: 10pt)[A]) there - ---- -// Pad can grow. -#pad(left: 10pt, right: 10pt)[PL #h(1fr) PR] - ---- -// Test that the pad element doesn't consume the whole region. -#set page(height: 6cm) -#align(left)[Before] -#pad(10pt, image("/assets/images/tiger.jpg")) -#align(right)[After] - ---- -// Test that padding adding up to 100% does not panic. -#pad(50%)[] |
