From c77c5a0f0ae6560a03a85e847006c29de9c7ae62 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 23 Nov 2021 14:25:50 +0100 Subject: Simpler alignment resolving --- tests/ref/layout/stack-1.png | Bin 317 -> 714 bytes tests/typ/layout/stack-1.typ | 10 ++++++++++ 2 files changed, 10 insertions(+) (limited to 'tests') diff --git a/tests/ref/layout/stack-1.png b/tests/ref/layout/stack-1.png index 535632c4..46c8d9d6 100644 Binary files a/tests/ref/layout/stack-1.png and b/tests/ref/layout/stack-1.png 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 @@ -18,6 +18,16 @@ #page(width: 50pt, margins: 0pt) #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) -- cgit v1.2.3