summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-12-11 17:34:25 +0100
committerLaurenz <laurmaedje@gmail.com>2019-12-11 17:34:25 +0100
commitd34707a6ae058560140c83af21365884451e9274 (patch)
treea039605f5d1313cdd899ba75142e2398dd21a7df /tests
parent92586d3e6895f0895fb2c88abcdd5e7160482a5b (diff)
Not too shabby stack layouter 🚆
Diffstat (limited to 'tests')
-rw-r--r--tests/layouts/test.typ43
1 files changed, 37 insertions, 6 deletions
diff --git a/tests/layouts/test.typ b/tests/layouts/test.typ
index 68f73a73..4b55e556 100644
--- a/tests/layouts/test.typ
+++ b/tests/layouts/test.typ
@@ -13,9 +13,40 @@
// ]
// Test 2
-[align: secondary=top] Top
-[align: secondary=center] Center
-[align: secondary=bottom] Bottom
-[direction: ttb, ltr]
-[align: primary=bottom]
-[box: w=1cm, h=1cm]
+// [align: secondary=top] Top
+// [align: secondary=center] Center
+// [align: secondary=bottom] Bottom
+// [direction: ttb, ltr]
+// [align: primary=bottom]
+// [box: w=1cm, h=1cm]
+
+// Test 3
+// [align: center][
+// Somelongspacelessword!
+// [align: left] Some
+// [align: right] word!
+// ]
+
+// Test 4: In all combinations, please!
+// [direction: ltr, ttb]
+// [align: center]
+// [align: secondary=origin]
+// [box: ps=1cm, ss=1cm]
+// [align: secondary=center]
+// [box: ps=3cm, ss=1cm]
+// [box: ps=4cm, ss=0.5cm]
+// [align: secondary=end]
+// [box: ps=2cm, ss=1cm]
+
+[align: primary=left, secondary=center]
+[box: w=4cm, h=2cm]
+
+[direction: primary=btt, secondary=ltr]
+[align: primary=center, secondary=left]
+[box: h=2cm, w=1cm]
+
+// [direction: rtl, btt]
+// [align: center]
+// [align: vertical=origin] ORIGIN
+// [align: vertical=center] CENTER
+// [align: vertical=end] END