summaryrefslogtreecommitdiff
path: root/tests/typ/insert/square.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-29 13:45:59 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-29 13:49:50 +0200
commit32a6b673bc4b73ade5863b0166c0779597cede5c (patch)
tree7d32aa06c63052a759f7fc4d89bb551faeb258d0 /tests/typ/insert/square.typ
parentb89cd128ae118571efe8a5a5b40b9365e3007746 (diff)
Make use of wide calls
Diffstat (limited to 'tests/typ/insert/square.typ')
-rw-r--r--tests/typ/insert/square.typ11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/typ/insert/square.typ b/tests/typ/insert/square.typ
index 649d31c0..f7e1e09e 100644
--- a/tests/typ/insert/square.typ
+++ b/tests/typ/insert/square.typ
@@ -3,11 +3,8 @@
---
Auto-sized square. \
#square(fill: eastern)[
- #align(center)
- #pad(5pt)[
- #font(color: #fff, weight: bold)
- Typst
- ]
+ #align!(center)
+ #pad(5pt, font(color: #fff, weight: bold)[Typst])
]
---
@@ -18,14 +15,14 @@ Auto-sized square. \
---
// Test height overflow.
-#page(width: 75pt, height: 100pt)
+#page!(width: 75pt, height: 100pt)
#square(fill: conifer)[
But, soft! what light through yonder window breaks?
]
---
// Test width overflow.
-#page(width: 100pt, height: 75pt)
+#page!(width: 100pt, height: 75pt)
#square(fill: conifer)[
But, soft! what light through yonder window breaks?
]