diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-10-08 15:13:14 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2024-10-15 15:06:36 +0200 |
| commit | 0abd417640bbb8d98c937293a4960ac3ec8a5b50 (patch) | |
| tree | 8b0f4f3e211e49befe82c11947e0c770d0eb57a8 /tests | |
| parent | f8a218f59755e83d215f035c942c122fcef27abd (diff) | |
Allow sticky blocks to be breakable (#5161)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/block-sticky-breakable.png | bin | 0 -> 405 bytes | |||
| -rw-r--r-- | tests/suite/layout/container.typ | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/block-sticky-breakable.png b/tests/ref/block-sticky-breakable.png Binary files differnew file mode 100644 index 00000000..91287a7e --- /dev/null +++ b/tests/ref/block-sticky-breakable.png 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)] |
