From 0abd417640bbb8d98c937293a4960ac3ec8a5b50 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 8 Oct 2024 15:13:14 +0200 Subject: Allow sticky blocks to be breakable (#5161) --- tests/ref/block-sticky-breakable.png | Bin 0 -> 405 bytes tests/suite/layout/container.typ | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 tests/ref/block-sticky-breakable.png (limited to 'tests') diff --git a/tests/ref/block-sticky-breakable.png b/tests/ref/block-sticky-breakable.png new file mode 100644 index 00000000..91287a7e Binary files /dev/null and b/tests/ref/block-sticky-breakable.png differ diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ index d054175a..e1367967 100644 --- a/tests/suite/layout/container.typ +++ b/tests/suite/layout/container.typ @@ -180,6 +180,12 @@ A #colbreak() C +--- block-sticky-breakable --- +// Ensure that sticky blocks are still breakable. +#set page(height: 60pt) +#block(sticky: true, lines(4)) +E + --- box-clip-rect --- // Test box clipping with a rectangle Hello #box(width: 1em, height: 1em, clip: false)[#rect(width: 3em, height: 3em, fill: red)] -- cgit v1.2.3