summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-23 14:25:50 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-23 14:25:50 +0100
commitc77c5a0f0ae6560a03a85e847006c29de9c7ae62 (patch)
tree18054ddb95e495cf2e198ca7bac0a5daac7b8240 /tests
parent4f9e5819bbab1f93ad4f4b789038c60487a76368 (diff)
Simpler alignment resolving
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/layout/stack-1.pngbin317 -> 714 bytes
-rw-r--r--tests/typ/layout/stack-1.typ10
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/ref/layout/stack-1.png b/tests/ref/layout/stack-1.png
index 535632c4..46c8d9d6 100644
--- a/tests/ref/layout/stack-1.png
+++ b/tests/ref/layout/stack-1.png
Binary files differ
diff --git a/tests/typ/layout/stack-1.typ b/tests/typ/layout/stack-1.typ
index 2fbe22e3..02083d2b 100644
--- a/tests/typ/layout/stack-1.typ
+++ b/tests/typ/layout/stack-1.typ
@@ -19,6 +19,16 @@
#stack(dir: btt, ..items)
---
+// Test RTL alignment.
+#page(width: 50pt, margins: 5pt)
+#font(8pt)
+#stack(dir: rtl,
+ align(center, [A]),
+ align(left, [B]),
+ [C],
+)
+
+---
// Test spacing.
#page(width: 50pt, margins: 0pt)
#par(spacing: 5pt)