Skip to content

Tall sticky blocks in lists don't properly break across pages #6388

@ensko

Description

@ensko

Description

This seems to be a regression between 0.12 and 0.13. Reproduction:

#set page(height: 7cm, width: 10cm, margin: 8mm)

#let test-block(sticky, body) = block(sticky: sticky, fill: red, body)

// #lorem(30)

- #test-block(true, lorem(90))
// - #test-block(false, lorem(90))

In 0.12, both render the same. In 0.13, the list item's bullet is on the first page, but the whole block is moved to the second page. The height of the block (as indicated by its fill) is that of the overflow to the second page in the non-sticky case, but the actual content of the block naturally overflows that height.

Reproduction URL

No response

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayoutRelated to layout, positioning, etc.regressionSomething that did work before stopped working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions