diff --git a/tests/ref/grid-subheaders-alone-with-footer-no-orphan-prevention.png b/tests/ref/grid-subheaders-alone-with-footer-no-orphan-prevention.png index 74de3e168..9b083f378 100644 Binary files a/tests/ref/grid-subheaders-alone-with-footer-no-orphan-prevention.png and b/tests/ref/grid-subheaders-alone-with-footer-no-orphan-prevention.png differ diff --git a/tests/ref/grid-subheaders-alone-with-gutter-and-footer-no-orphan-prevention.png b/tests/ref/grid-subheaders-alone-with-gutter-and-footer-no-orphan-prevention.png new file mode 100644 index 000000000..7d6cc45e0 Binary files /dev/null and b/tests/ref/grid-subheaders-alone-with-gutter-and-footer-no-orphan-prevention.png differ diff --git a/tests/suite/layout/grid/subheaders.typ b/tests/suite/layout/grid/subheaders.typ index a5b315900..9cd42bba3 100644 --- a/tests/suite/layout/grid/subheaders.typ +++ b/tests/suite/layout/grid/subheaders.typ @@ -788,3 +788,19 @@ [a], ) ) + +--- grid-subheaders-alone-with-gutter-and-footer-no-orphan-prevention --- +#set page(height: 5.5em) +#table( + gutter: 4pt, + table.header( + [L1] + ), + table.header( + level: 2, + [L2] + ), + table.footer( + [a], + ) +)