summaryrefslogtreecommitdiff
path: root/tests/typ/layout/grid-5.typ
blob: 18736b9046a995c7fb2c0bc8db7f9a4cb3e769d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

---
// Test that trailing linebreak doesn't overflow the region.
#page(height: 2cm)
#grid[
  Hello \
  Hello \
  Hello \

  World
]

---
// Test that broken cell expands vertically.
#page(height: 2.25cm)
#grid(
  columns: 2,
  gutter: 10pt,
  [#align(bottom) A],
  [
    Top
    #align(bottom)
    Bottom \
    Bottom \
    Top
  ],
  [#align(top) B],
)