diff --git a/tests/ref/block-multiple-pages-empty.png b/tests/ref/block-multiple-pages-empty.png new file mode 100644 index 000000000..44f9df91b Binary files /dev/null and b/tests/ref/block-multiple-pages-empty.png differ diff --git a/tests/ref/issue-2914-block-fill-skip-nested.png b/tests/ref/issue-2914-block-fill-skip-nested.png new file mode 100644 index 000000000..d7b1aa7d7 Binary files /dev/null and b/tests/ref/issue-2914-block-fill-skip-nested.png differ diff --git a/tests/ref/issue-2914-block-height-cut-off.png b/tests/ref/issue-2914-block-height-cut-off.png new file mode 100644 index 000000000..1c4d57d2a Binary files /dev/null and b/tests/ref/issue-2914-block-height-cut-off.png differ diff --git a/tests/ref/issue-6125-block-place-width-limited.png b/tests/ref/issue-6125-block-place-width-limited.png new file mode 100644 index 000000000..bf61465ef Binary files /dev/null and b/tests/ref/issue-6125-block-place-width-limited.png differ diff --git a/tests/ref/issue-6304-block-skip-label.png b/tests/ref/issue-6304-block-skip-label.png new file mode 100644 index 000000000..a912ff0d5 Binary files /dev/null and b/tests/ref/issue-6304-block-skip-label.png differ diff --git a/tests/suite/layout/container.typ b/tests/suite/layout/container.typ index f15ddfe4a..cec1df6a8 100644 --- a/tests/suite/layout/container.typ +++ b/tests/suite/layout/container.typ @@ -64,6 +64,12 @@ First! is the sun. ] +--- block-multiple-pages-empty --- +#set page(height: 60pt) +A +#block(height: 30pt) +B + --- block-box-fill --- #set page(height: 100pt) #let words = lorem(18).split() @@ -287,6 +293,37 @@ Paragraph #block(width: 100%, fill: red, box("a box")) #block(width: 100%, fill: red, [#box("a box") #box()]) +--- issue-2914-block-height-cut-off --- +// Ensure that breaking a block doesn't shrink its height. +#set page(height: 65pt) +#set block(fill: aqua, width: 25pt, height: 25pt, inset: 5pt) + +#block[A] +#block[B] + +--- issue-2914-block-fill-skip-nested --- +// Ensure that fill and stroke are skipped for an empty frame with a nested block. +#set page(height: 50pt) +A +#block(fill: aqua, stroke: blue, inset: 5pt, width: 100%, block[B]) + +--- issue-6304-block-skip-label --- +// Ensure that labeling is skipped for an empty orphan frame. +#set page(height: 60pt) +A +#block(sticky: true)[B] +#block[C]