summaryrefslogtreecommitdiff
path: root/tests/suite/layout/container.typ
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-12-20 07:03:12 -0300
committerGitHub <noreply@github.com>2024-12-20 10:03:12 +0000
commit6c2d54bbe3df70670afef6d3f61750daeb2adf34 (patch)
treed6346e7163d2ceb9899dc870adc7138a5749f78c /tests/suite/layout/container.typ
parent370aa5929fc78a6b5300547b2f0f3f9e0cca96e3 (diff)
Fix crash when block or text have negative sizes (#5610)
Diffstat (limited to 'tests/suite/layout/container.typ')
-rw-r--r--tests/suite/layout/container.typ14
1 files changed, 14 insertions, 0 deletions
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