diff options
| author | HydroH <iodizon@163.com> | 2023-10-09 21:52:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-09 15:52:04 +0200 |
| commit | 7b61d722ddcd609e7bb51a454b27dd883f620357 (patch) | |
| tree | b46b7b84116af0517d1a3b41c3a837f534fd795f /tests/typ/layout | |
| parent | 0804a9e25d865dc25d10aae22b0a39c4e16cab19 (diff) | |
Adjust table inset behavior to the same as container's (#1979) (#2323)
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/table.typ | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/typ/layout/table.typ b/tests/typ/layout/table.typ index d91c3fa7..5ddc8503 100644 --- a/tests/typ/layout/table.typ +++ b/tests/typ/layout/table.typ @@ -30,6 +30,38 @@ ) --- +// Test inset. +#table( + columns: 3, + inset: 10pt, + [A], [B], [C] +) + +#table( + columns: 3, + inset: (y: 10pt), + [A], [B], [C] +) + +#table( + columns: 3, + inset: (left: 20pt, rest: 10pt), + [A], [B], [C] +) + +#table( + columns: 2, + inset: ( + left: 20pt, + right: 5pt, + top: 10pt, + bottom: 3pt, + ), + [A], + [B], +) + +--- // Ref: false #table() |
