summaryrefslogtreecommitdiff
path: root/tests/library
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-12 22:55:26 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-12 22:55:26 +0100
commit790dc9e6670b0d90c9ff68a0981cdbfb7d9c536a (patch)
treeaf12c6da8b32a0e54c9dfe005b6076d764804d9c /tests/library
parenta2fcc1bf288c5162de7b2158166de62cb0610083 (diff)
Cleaning 🧹
Diffstat (limited to 'tests/library')
-rw-r--r--tests/library/ref/box.pngbin5087 -> 2704 bytes
-rw-r--r--tests/library/typ/box.typ25
2 files changed, 11 insertions, 14 deletions
diff --git a/tests/library/ref/box.png b/tests/library/ref/box.png
index 37fd7d27..9827c6c3 100644
--- a/tests/library/ref/box.png
+++ b/tests/library/ref/box.png
Binary files differ
diff --git a/tests/library/typ/box.typ b/tests/library/typ/box.typ
index 03e5da54..67abe350 100644
--- a/tests/library/typ/box.typ
+++ b/tests/library/typ/box.typ
@@ -1,23 +1,20 @@
-#[page "a5", flip: true]
+#[page "a7", flip: true]
-// Rectangle with width, should have paragraph height
-#[box width: 2cm, color: #9650D6][aa]
+// Box with fixed width, should have text height.
+#[box width: 2cm, color: #9650D6][A]
-Sometimes there is no box
+Sometimes there is no box.
-// Rectangle with height, should span line
-#[box height: 2cm, width: 100%, color: #734CED][bb]
+// Box with fixed height, should span line.
+#[box height: 2cm, width: 100%, color: #734CED][B]
-// Empty rectangle with width and height
+// Empty box with fixed width and height.
#[box width: 6cm, height: 12pt, color: #CB4CED]
-// This empty rectangle should not be displayed
+// Not visiblem, but creates a gap between the boxes above and below.
#[box width: 2in, color: #ff0000]
-// This one should be
-#[box height: 15mm, width: 100%, color: #494DE3]
-
// These are in a row!
-#[box width: 2in, height: 10pt, color: #D6CD67]
-#[box width: 2in, height: 10pt, color: #EDD466]
-#[box width: 2in, height: 10pt, color: #E3BE62]
+#[box width: 1in, height: 10pt, color: #D6CD67]
+#[box width: 1in, height: 10pt, color: #EDD466]
+#[box width: 1in, height: 10pt, color: #E3BE62]