diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-16 10:41:30 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-16 10:41:30 +0100 |
| commit | 0e0f340502beada1cd9ee23857f48b91a0d11a90 (patch) | |
| tree | e4e4087260720adf4bab57edeac6a3d3cb5f14cf /tests/typ | |
| parent | bc118634aca5de415d211cab38c4eaa3d3cca25f (diff) | |
Revert page and inline levels
Diffstat (limited to 'tests/typ')
| -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) |
