diff --git a/tests/ref/stack-align.png b/tests/ref/stack-align.png new file mode 100644 index 000000000..2e4912db8 Binary files /dev/null and b/tests/ref/stack-align.png differ diff --git a/tests/suite/layout/stack.typ b/tests/suite/layout/stack.typ index aad273a5b..9d64188c0 100644 --- a/tests/suite/layout/stack.typ +++ b/tests/suite/layout/stack.typ @@ -89,3 +89,10 @@ World! 🌍 // Error: 3-40 stack spacing is infinite stack(spacing: infinite-length)[A][B] }) + +--- stack-align --- +#set align(center) +#set stack(align: end) +#stack[I][am][aligned][to][the][right!] +#stack(align: auto)[I][am][aligned][to][the][center!] +#stack(dir: rtl, align: horizon)[Aligned \ at][horizon.]