From 8fb225feb4a10a916c239faaa130cf5aae164284 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 13 Sep 2023 12:28:30 +0200 Subject: Fix box in 100% width block Fixes #2128 --- tests/ref/bugs/block-width-box.png | Bin 0 -> 1683 bytes tests/typ/bugs/block-width-box.typ | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 tests/ref/bugs/block-width-box.png create mode 100644 tests/typ/bugs/block-width-box.typ (limited to 'tests') diff --git a/tests/ref/bugs/block-width-box.png b/tests/ref/bugs/block-width-box.png new file mode 100644 index 00000000..9cb27a5d Binary files /dev/null and b/tests/ref/bugs/block-width-box.png differ diff --git a/tests/typ/bugs/block-width-box.typ b/tests/typ/bugs/block-width-box.typ new file mode 100644 index 00000000..a039bc66 --- /dev/null +++ b/tests/typ/bugs/block-width-box.typ @@ -0,0 +1,6 @@ +// Test box in 100% width block. + +--- +#block(width: 100%, fill: red, box("a box")) + +#block(width: 100%, fill: red, [#box("a box") #box()]) -- cgit v1.2.3