summaryrefslogtreecommitdiff
path: root/tests/typ/bugs/grid-2.typ
blob: b7528b7bdcfe0f914236b2ad677a853c9db8291e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Grid now skips a remaining region when one of the cells
// doesn't fit into it at all.

---
#set page(height: 100pt)
#grid(
  columns: (2cm, auto),
  rows: (auto, auto),
  rect(width: 100%, fill: red),
  rect(width: 100%, fill: blue),
  rect(width: 100%, height: 80%, fill: green),
  [hello \ darkness #parbreak() my \ old \ friend \ I],
  rect(width: 100%, height: 20%, fill: blue),
  polygon(fill: red, (0%, 0%), (100%, 0%), (100%, 20%))
)

---
#set page(height: 60pt)
#lorem(5)
- #lorem(5)