diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-5435-footnote-migration-in-floats.png | bin | 0 -> 448 bytes | |||
| -rw-r--r-- | tests/suite/layout/flow/footnote.typ | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/ref/issue-5435-footnote-migration-in-floats.png b/tests/ref/issue-5435-footnote-migration-in-floats.png Binary files differnew file mode 100644 index 00000000..672a5af8 --- /dev/null +++ b/tests/ref/issue-5435-footnote-migration-in-floats.png 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] +) |
