mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Test [h] and [v] 🐈
This commit is contained in:
parent
b02ba84264
commit
0f6c67219e
BIN
tests/ref/h-and-v.png
Normal file
BIN
tests/ref/h-and-v.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
25
tests/typ/h-and-v.typ
Normal file
25
tests/typ/h-and-v.typ
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
// Test the `h` and `v` functions.
|
||||||
|
|
||||||
|
// Ends paragraphs.
|
||||||
|
Tightly [v: -5pt] packed
|
||||||
|
|
||||||
|
// Eating up soft spacing.
|
||||||
|
Inv [h: 0pt] isible
|
||||||
|
|
||||||
|
// Multiple spacings in a row.
|
||||||
|
Add [h: 10pt] [h: 10pt] up
|
||||||
|
|
||||||
|
// Relative to font size.
|
||||||
|
Relative [h: 100%] spacing
|
||||||
|
|
||||||
|
// Missing spacing.
|
||||||
|
Totally [h] ignored
|
||||||
|
|
||||||
|
// Swapped axes.
|
||||||
|
[page: main-dir=rtl, cross-dir=ttb][
|
||||||
|
1 [h: 1cm] 2
|
||||||
|
|
||||||
|
3 [v: 1cm] 4 [v: -1cm] 5
|
||||||
|
]
|
||||||
|
|
||||||
|
// error: 16:11-16:11 missing argument: spacing
|
Loading…
x
Reference in New Issue
Block a user