summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-5262-block-negative-height-implicit.pngbin0 -> 72 bytes
-rw-r--r--tests/ref/issue-5262-block-negative-height-in-flow.pngbin0 -> 236 bytes
-rw-r--r--tests/ref/issue-5262-block-negative-height.pngbin0 -> 73 bytes
-rw-r--r--tests/ref/issue-5262-text-negative-size.pngbin0 -> 73 bytes
-rw-r--r--tests/suite/layout/container.typ14
-rw-r--r--tests/suite/text/font.typ5
6 files changed, 19 insertions, 0 deletions
diff --git a/tests/ref/issue-5262-block-negative-height-implicit.png b/tests/ref/issue-5262-block-negative-height-implicit.png
new file mode 100644
index 00000000..3b7b289b
--- /dev/null
+++ b/tests/ref/issue-5262-block-negative-height-implicit.png
Binary files differ
diff --git a/tests/ref/issue-5262-block-negative-height-in-flow.png b/tests/ref/issue-5262-block-negative-height-in-flow.png
new file mode 100644
index 00000000..402c5810
--- /dev/null
+++ b/tests/ref/issue-5262-block-negative-height-in-flow.png
Binary files differ
diff --git a/tests/ref/issue-5262-block-negative-height.png b/tests/ref/issue-5262-block-negative-height.png
new file mode 100644
index 00000000..1a1146d8
--- /dev/null
+++ b/tests/ref/issue-5262-block-negative-height.png
Binary files differ
diff --git a/tests/ref/issue-5262-text-negative-size.png b/tests/ref/issue-5262-text-negative-size.png
new file mode 100644
index 00000000..61e6dbae
--- /dev/null
+++ b/tests/ref/issue-5262-text-negative-size.png
Binary files differ
diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ
index 9948a00e..bb53a041 100644
--- a/tests/suite/layout/container.typ
+++ b/tests/suite/layout/container.typ
@@ -304,3 +304,17 @@ b
#block(sticky: true)[*A*]
b
+
+--- issue-5262-block-negative-height ---
+#block(height: -1pt)[]
+
+--- issue-5262-block-negative-height-implicit ---
+#set page(height: 10pt, margin: (top: 9pt))
+#block(height: 100%)[]
+
+--- issue-5262-block-negative-height-in-flow ---
+// The contents after the block should be pushed upwards.
+#set page(height: 60pt)
+a
+#block(height: -25pt)[b]
+c
diff --git a/tests/suite/text/font.typ b/tests/suite/text/font.typ
index 5af8dcb9..9e5c0150 100644
--- a/tests/suite/text/font.typ
+++ b/tests/suite/text/font.typ
@@ -149,3 +149,8 @@ The number 123.
// Error: 17-65 coverage regex may only use dot, letters, and character classes
// Hint: 17-65 the regex is applied to each letter individually
#set text(font: (name: "Ubuntu", covers: regex("\u{20}-\u{10}")))
+
+--- issue-5262-text-negative-size ---
+#set text(-1pt)
+
+a