diff options
Diffstat (limited to 'tests/suite/layout/dir.typ')
| -rw-r--r-- | tests/suite/layout/dir.typ | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/suite/layout/dir.typ b/tests/suite/layout/dir.typ new file mode 100644 index 00000000..139a2285 --- /dev/null +++ b/tests/suite/layout/dir.typ @@ -0,0 +1,24 @@ +--- dir-axis --- +// Test direction methods. +#test(ltr.axis(), "horizontal") +#test(rtl.axis(), "horizontal") +#test(ttb.axis(), "vertical") +#test(btt.axis(), "vertical") + +--- dir-start --- +#test(ltr.start(), left) +#test(rtl.start(), right) +#test(ttb.start(), top) +#test(btt.start(), bottom) + +--- dir-end --- +#test(ltr.end(), right) +#test(rtl.end(), left) +#test(ttb.end(), bottom) +#test(btt.end(), top) + +--- dir-inv --- +#test(ltr.inv(), rtl) +#test(rtl.inv(), ltr) +#test(ttb.inv(), btt) +#test(btt.inv(), ttb) |
