summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/issue-5354-footnote-empty-frame-infinite-loop.pngbin0 -> 2342 bytes
-rw-r--r--tests/suite/layout/flow/footnote.typ5
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png b/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png
new file mode 100644
index 00000000..acad56b6
--- /dev/null
+++ b/tests/ref/issue-5354-footnote-empty-frame-infinite-loop.png
Binary files differ
diff --git a/tests/suite/layout/flow/footnote.typ b/tests/suite/layout/flow/footnote.typ
index 3230c3da..63602351 100644
--- a/tests/suite/layout/flow/footnote.typ
+++ b/tests/suite/layout/flow/footnote.typ
@@ -286,3 +286,8 @@ B #footnote[b]
--- issue-4454-footnote-ref-numbering ---
// Test that footnote references are numbered correctly.
A #footnote(numbering: "*")[B]<fn>, C @fn, D @fn, E @fn.
+
+--- issue-5354-footnote-empty-frame-infinite-loop ---
+// Test whether an empty footnote would cause infinite loop
+#show footnote.entry: it => {}
+#lorem(3) #footnote[A footnote]