summaryrefslogtreecommitdiff
path: root/tests/typ/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-04-06 12:25:55 +0200
committerLaurenz <laurmaedje@gmail.com>2023-04-06 12:26:39 +0200
commitf9b9be16f96d01ffb0587f65c8c32da9e9e4b3f5 (patch)
tree08395e4627bc669d2c6780f8e4885185d390d86b /tests/typ/layout
parent23a884a67f4afde7541e4c39f22ff275f939a8f5 (diff)
Fix box and block sizing
Diffstat (limited to 'tests/typ/layout')
-rw-r--r--tests/typ/layout/container.typ10
1 files changed, 10 insertions, 0 deletions
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
@@ -10,6 +10,16 @@ Spaced \
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