From 02285e8b1fbdf284f2a1115c97f84fc7acb2122e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 18 Apr 2024 11:33:36 +0200 Subject: Fix path in sized container (#3954) --- tests/ref/issue-path-in-sized-container.png | Bin 0 -> 152 bytes tests/suite/visualize/path.typ | 13 +++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/ref/issue-path-in-sized-container.png (limited to 'tests') diff --git a/tests/ref/issue-path-in-sized-container.png b/tests/ref/issue-path-in-sized-container.png new file mode 100644 index 00000000..ebecc122 Binary files /dev/null and b/tests/ref/issue-path-in-sized-container.png differ diff --git a/tests/suite/visualize/path.typ b/tests/suite/visualize/path.typ index 10955f14..bdd3dc72 100644 --- a/tests/suite/visualize/path.typ +++ b/tests/suite/visualize/path.typ @@ -50,3 +50,16 @@ --- path-bad-point-array --- // Error: 7-31 point array must contain exactly two entries #path(((0%, 0%), (0%, 0%, 0%))) + +--- issue-path-in-sized-container --- +// Paths used to implement `LayoutMultiple` rather than `LayoutSingle` without +// fulfilling the necessary contract of respecting region expansion. +#block( + fill: aqua, + width: 20pt, + height: 15pt, + path( + (0pt, 0pt), + (10pt, 10pt), + ), +) -- cgit v1.2.3