From f9b9be16f96d01ffb0587f65c8c32da9e9e4b3f5 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 6 Apr 2023 12:25:55 +0200 Subject: Fix box and block sizing --- tests/ref/compiler/construct.png | Bin 6327 -> 6320 bytes tests/ref/layout/container.png | Bin 8541 -> 20514 bytes tests/typ/layout/container.typ | 10 ++++++++++ 3 files changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/ref/compiler/construct.png b/tests/ref/compiler/construct.png index eba9aa9f..3dac041f 100644 Binary files a/tests/ref/compiler/construct.png and b/tests/ref/compiler/construct.png differ diff --git a/tests/ref/layout/container.png b/tests/ref/layout/container.png index ce298d29..eff06f1a 100644 Binary files a/tests/ref/layout/container.png and b/tests/ref/layout/container.png differ diff --git a/tests/typ/layout/container.typ b/tests/typ/layout/container.typ index 0b30c4e1..d9b62f5e 100644 --- a/tests/typ/layout/container.typ +++ b/tests/typ/layout/container.typ @@ -9,6 +9,16 @@ Spaced \ #box(height: 0.5cm) \ Apart +--- +// Test box sizing. +#box(width: 50pt, height: 50pt, fill: yellow, path( + fill: purple, + (0pt, 0pt), + (30pt, 30pt), + (0pt, 30pt), + (30pt, 0pt), +)) + --- // Test fr box. Hello #box(width: 1fr, rect(height: 0.7em, width: 100%)) World -- cgit v1.2.3