diff options
Diffstat (limited to 'tests/suite/layout/flow/place-flush.typ')
| -rw-r--r-- | tests/suite/layout/flow/place-flush.typ | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/suite/layout/flow/place-flush.typ b/tests/suite/layout/flow/place-flush.typ new file mode 100644 index 00000000..8f55a6fd --- /dev/null +++ b/tests/suite/layout/flow/place-flush.typ @@ -0,0 +1,29 @@ +--- place-flush --- +#set page(height: 120pt) +#let floater(align, height) = place( + align, + float: true, + rect(width: 100%, height: height), +) + +#floater(top, 30pt) +A + +#floater(bottom, 50pt) +#place.flush() +B // Should be on the second page. + +--- place-flush-figure --- +#set page(height: 120pt) +#let floater(align, height, caption) = figure( + placement: align, + caption: caption, + rect(width: 100%, height: height), +) + +#floater(top, 30pt)[I] +A + +#floater(bottom, 50pt)[II] +#place.flush() +B // Should be on the second page. |
