summaryrefslogtreecommitdiff
path: root/tests/suite/layout/flow
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-12-09 06:55:58 -0300
committerGitHub <noreply@github.com>2024-12-09 09:55:58 +0000
commitc2cc09e71ab97f752cd07acad7c38443c58cf64f (patch)
tree87ee0e3f4f817f9168c206ce7ad20ea8af0828c3 /tests/suite/layout/flow
parent73dd5a085e1d877da6768b3fe67a4238863ba00b (diff)
Forbid footnote migration in pending floats (#5497)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/suite/layout/flow')
-rw-r--r--tests/suite/layout/flow/footnote.typ20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/suite/layout/flow/footnote.typ b/tests/suite/layout/flow/footnote.typ
index b549fbca..885ef627 100644
--- a/tests/suite/layout/flow/footnote.typ
+++ b/tests/suite/layout/flow/footnote.typ
@@ -295,3 +295,23 @@ A #footnote(numbering: "*")[B]<fn>, C @fn, D @fn, E @fn.
--- issue-5256-multiple-footnotes-in-footnote ---
// Test whether all footnotes inside another footnote are listed.
#footnote[#footnote[A]#footnote[B]#footnote[C]]
+
+--- issue-5435-footnote-migration-in-floats ---
+// Test that a footnote should not prompt migration when in a float that was
+// queued to the next page (due to the float being too large), even if the
+// footnote does not fit, breaking the footnote invariant.
+#set page(height: 50pt)
+
+#place(
+ top,
+ float: true,
+ {
+ v(100pt)
+ footnote[a]
+ }
+)
+#place(
+ top,
+ float: true,
+ footnote[b]
+)