summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-4651-justify-bad-bound.pngbin0 -> 207 bytes
-rw-r--r--tests/suite/layout/inline/justify.typ5
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ref/issue-4651-justify-bad-bound.png b/tests/ref/issue-4651-justify-bad-bound.png
new file mode 100644
index 00000000..5b73fc66
--- /dev/null
+++ b/tests/ref/issue-4651-justify-bad-bound.png
Binary files differ
diff --git a/tests/suite/layout/inline/justify.typ b/tests/suite/layout/inline/justify.typ
index b35ff1fd..83fbd057 100644
--- a/tests/suite/layout/inline/justify.typ
+++ b/tests/suite/layout/inline/justify.typ
@@ -167,3 +167,8 @@ int main() {
// an underfull first line.
#set par(hanging-indent: 2.5cm, justify: true)
#lorem(5)
+
+--- issue-4651-justify-bad-bound ---
+// Test that overflow does not lead to bad bounds in paragraph optimization.
+#set par(justify: true)
+#block(width: 0pt)[A B]