diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-13 16:50:57 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-13 16:50:57 +0100 |
| commit | 8f68bc7a8ea619af12d95bec7025bd9f3a86625f (patch) | |
| tree | 7f9b454ed419b45d7787de4ace992b40078d4072 /tests/typ/layout/table.typ | |
| parent | b1b4e52af9e2da8f8ae1fc17a81ed6cbcbb8f525 (diff) | |
Dissolve basics folder
Diffstat (limited to 'tests/typ/layout/table.typ')
| -rw-r--r-- | tests/typ/layout/table.typ | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/typ/layout/table.typ b/tests/typ/layout/table.typ new file mode 100644 index 00000000..5d423e03 --- /dev/null +++ b/tests/typ/layout/table.typ @@ -0,0 +1,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") |
