summaryrefslogtreecommitdiff
path: root/tests/typ/elements
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-25 20:51:16 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-25 20:51:16 +0100
commit393d74f9bb0d4c71a69108d5be261103c39f47f3 (patch)
treea1d4219de2d8fbec1a16ac3760a95e0b7c9529c5 /tests/typ/elements
parent304d9dd1107504f3925c2593dd279ea6616defab (diff)
Layout improvements
Diffstat (limited to 'tests/typ/elements')
-rw-r--r--tests/typ/elements/circle.typ2
-rw-r--r--tests/typ/elements/rect.typ2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/elements/circle.typ b/tests/typ/elements/circle.typ
index 2e97e985..ad9d3a4e 100644
--- a/tests/typ/elements/circle.typ
+++ b/tests/typ/elements/circle.typ
@@ -16,7 +16,7 @@ Auto-sized circle. \
Center-aligned rect in auto-sized circle.
#circle(fill: forest, stroke: conifer,
align(center + horizon,
- rect(fill: conifer, pad(5pt)[But, soft!])
+ rect(fill: conifer, padding: 5pt)[But, soft!]
)
)
diff --git a/tests/typ/elements/rect.typ b/tests/typ/elements/rect.typ
index bb666fb2..b3d4d286 100644
--- a/tests/typ/elements/rect.typ
+++ b/tests/typ/elements/rect.typ
@@ -19,7 +19,7 @@
))
// Fixed width, text height.
-#rect(width: 2cm, fill: rgb("9650d6"), pad(5pt)[Fixed and padded])
+#rect(width: 2cm, fill: rgb("9650d6"), padding: 5pt)[Fixed and padded]
// Page width, fixed height.
#rect(height: 1cm, width: 100%, fill: rgb("734ced"))[Topleft]