diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/layout/stack-1.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/layout/stack-1.typ')
| -rw-r--r-- | tests/typ/layout/stack-1.typ | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/tests/typ/layout/stack-1.typ b/tests/typ/layout/stack-1.typ deleted file mode 100644 index 8b5472e8..00000000 --- a/tests/typ/layout/stack-1.typ +++ /dev/null @@ -1,52 +0,0 @@ -// Test stack layouts. - ---- -// Test stacks with different directions. -#let widths = ( - 30pt, 20pt, 40pt, 15pt, - 30pt, 50%, 20pt, 100%, -) - -#let shaded(i, w) = { - let v = (i + 1) * 10% - rect(width: w, height: 10pt, fill: rgb(v, v, v)) -} - -#let items = for (i, w) in widths.enumerate() { - (align(right, shaded(i, w)),) -} - -#set page(width: 50pt, margin: 0pt) -#stack(dir: btt, ..items) - ---- -// Test spacing. -#set page(width: 50pt, margin: 0pt) - -#let x = square(size: 10pt, fill: eastern) -#stack( - spacing: 5pt, - stack(dir: rtl, spacing: 5pt, x, x, x), - stack(dir: ltr, x, 20%, x, 20%, x), - stack(dir: ltr, spacing: 5pt, x, x, 7pt, 3pt, x), -) - ---- -// Test overflow. -#set page(width: 50pt, height: 30pt, margin: 0pt) -#box(stack( - rect(width: 40pt, height: 20pt, fill: conifer), - rect(width: 30pt, height: 13pt, fill: forest), -)) - ---- -// Test aligning things in RTL stack with align function & fr units. -#set page(width: 50pt, margin: 5pt) -#set block(spacing: 5pt) -#set text(8pt) -#stack(dir: rtl, 1fr, [A], 1fr, [B], [C]) -#stack(dir: rtl, - align(center, [A]), - align(left, [B]), - [C], -) |
