summaryrefslogtreecommitdiff
path: root/tests/typ/structure
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-16 16:04:40 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-16 16:04:40 +0200
commit6536e9e069616b862ebb774c7bef1b886c069350 (patch)
treeda6a3cb2d4870c2e09326def64467d48ff21d883 /tests/typ/structure
parentbc1bc91a33bcef567dbd7f846dbfac9d19a0994e (diff)
Table fill closure
Diffstat (limited to 'tests/typ/structure')
-rw-r--r--tests/typ/structure/table.typ6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/typ/structure/table.typ b/tests/typ/structure/table.typ
index 57b71ede..527141c5 100644
--- a/tests/typ/structure/table.typ
+++ b/tests/typ/structure/table.typ
@@ -2,7 +2,7 @@
---
#set page(height: 70pt)
-#set table(primary: rgb("aaa"), secondary: none)
+#set table(fill: (x, y) => if even(x + y) { rgb("aaa") })
#table(
columns: (1fr,) * 3,
@@ -16,3 +16,7 @@
---
// Ref: false
#table()
+
+---
+// Error: 14-19 expected color or none or function, found string
+#table(fill: "hey")