diff options
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/pad.typ | 14 | ||||
| -rw-r--r-- | tests/typ/layout/stack-2.typ | 2 |
2 files changed, 4 insertions, 12 deletions
diff --git a/tests/typ/layout/pad.typ b/tests/typ/layout/pad.typ index 3729761a..2a91d1ca 100644 --- a/tests/typ/layout/pad.typ +++ b/tests/typ/layout/pad.typ @@ -11,19 +11,11 @@ ) ) -Hi #box(pad(left: 10pt)[]) there +Hi #pad(left: 10pt)[A] there --- -#let pad(body) = pad(left: 10pt, right: 10pt, body) - -// Pad inherits expansion behaviour from stack .... -#pad[PL #align(right)[PR]] - -// ... block ... -#block(pad[PL #align(right)[PR]]) - -// ... and box. -#box(pad[PL #align(right)[PR]]) +// Pad can grow. +#pad(left: 10pt, right: 10pt)[PL #h(1fr) PR] --- // Test that the pad node doesn't consume the whole region. diff --git a/tests/typ/layout/stack-2.typ b/tests/typ/layout/stack-2.typ index afc9de39..2167f48f 100644 --- a/tests/typ/layout/stack-2.typ +++ b/tests/typ/layout/stack-2.typ @@ -17,7 +17,7 @@ World! 🌍 --- #page(height: 2cm) #font(white) -#box(fill: forest)[ +#rect(fill: forest)[ #v(1fr) #h(1fr) Hi you! #h(5pt) #v(5pt) |
