mirror of
https://github.com/typst/typst
synced 2025-07-27 14:27:56 +08:00
Instead, spill the whole child into the next region to prevent small leftovers to influence layout. This is not done when all frames are empty (e.g. for an explicitly sized block without content or fill). This helps with the following cases: - Previously, if a sticky block was followed by a leftover frame, the stickiness would be ignored, as the leftover was in fact sticking. This is not currently a problem, as sticky blocks aren't really breakable at the moment, but probably will be in the future. - When ignoring stroke and fill for a first empty frame, a nested broken block would previously make the first frame not be considered empty anymore, which would lead to the leftover frame being filled. - Similarly, when the fill of an explicitly sized block is ignored in the first empty frame, the leftover part would still be considered as laid out, making the actually visible block too small.