diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-02-20 17:53:40 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-02-20 23:34:33 +0100 |
| commit | 05727bfc3a9cfd45a8e2028dfd0806f7a8f88015 (patch) | |
| tree | 6c0b66eb2a9dff224cb39eb6ccb478656a706c04 /tests/typ/library/box.typ | |
| parent | 927341d93ae29678095e3b874bd68bfc57d4bc05 (diff) | |
Reorganize tests 🔀
Diffstat (limited to 'tests/typ/library/box.typ')
| -rw-r--r-- | tests/typ/library/box.typ | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/typ/library/box.typ b/tests/typ/library/box.typ new file mode 100644 index 00000000..57763f12 --- /dev/null +++ b/tests/typ/library/box.typ @@ -0,0 +1,20 @@ +#page("a7", flip: true) + +// Box with fixed width, should have text height. +#box(width: 2cm, color: #9650D6)[A] + +Sometimes there is no box. + +// Box with fixed height, should span line. +#box(height: 2cm, width: 100%, color: #734CED)[B] + +// Empty box with fixed width and height. +#box(width: 6cm, height: 12pt, color: #CB4CED) + +// Not visiblem, but creates a gap between the boxes above and below. +#box(width: 2in, color: #ff0000) + +// These are in a row! +#box(width: 1in, height: 10pt, color: #D6CD67) +#box(width: 1in, height: 10pt, color: #EDD466) +#box(width: 1in, height: 10pt, color: #E3BE62) |
