diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-16 16:04:40 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-16 16:04:40 +0200 |
| commit | 6536e9e069616b862ebb774c7bef1b886c069350 (patch) | |
| tree | da6a3cb2d4870c2e09326def64467d48ff21d883 /tests/typ | |
| parent | bc1bc91a33bcef567dbd7f846dbfac9d19a0994e (diff) | |
Table fill closure
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/structure/table.typ | 6 | ||||
| -rw-r--r-- | tests/typ/text/par.typ | 2 |
2 files changed, 6 insertions, 2 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") diff --git a/tests/typ/text/par.typ b/tests/typ/text/par.typ index 64a2dd17..059653c5 100644 --- a/tests/typ/text/par.typ +++ b/tests/typ/text/par.typ @@ -26,7 +26,7 @@ Fourth #set par(spacing: 100pt) #set table(around: 5pt) Hello -#table(columns: 4, secondary: silver)[A][B][C][D] +#table(columns: 4, fill: (x, y) => if odd(x + y) { silver })[A][B][C][D] --- // While we're at it, test the larger block spacing wins. |
