From 7b61d722ddcd609e7bb51a454b27dd883f620357 Mon Sep 17 00:00:00 2001 From: HydroH Date: Mon, 9 Oct 2023 21:52:04 +0800 Subject: Adjust table inset behavior to the same as container's (#1979) (#2323) --- tests/ref/layout/table.png | Bin 7530 -> 12226 bytes tests/typ/layout/table.typ | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) (limited to 'tests') diff --git a/tests/ref/layout/table.png b/tests/ref/layout/table.png index 5c8dbf0e..fe4554d9 100644 Binary files a/tests/ref/layout/table.png and b/tests/ref/layout/table.png differ 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 @@ -29,6 +29,38 @@ [A], [B], [C] ) +--- +// 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() -- cgit v1.2.3