summaryrefslogtreecommitdiff
path: root/tests/typ/layout/table.typ
blob: 5d423e037c930cf751360ab230f4848b3df208b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Test tables.

---
#set page(height: 70pt)
#set table(fill: (x, y) => if calc.even(x + y) { rgb("aaa") })

#table(
  columns: (1fr,) * 3,
  stroke: 2pt + rgb("333"),
  [A], [B], [C], [], [], [D \ E \ F \ \ \ G], [H],
)

---
#table(columns: 3, stroke: none, fill: green, [A], [B], [C])

---
// Ref: false
#table()

---
// Error: 14-19 expected color, none, or function, found string
#table(fill: "hey")