Skip to content

Commit edf5f50

Browse files
committed
print: handle rounded borders correctly with multiple pages
When the `<div id="main">`, which has rounded borders, is broken apart because the content does not fit onto a single page, the rounded borders were cut off at page breaks. Let's just close them, so that each page gets its own box with rounded borders. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bbb4c13 commit edf5f50

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assets/sass/print.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@
2525
section {
2626
break-inside: avoid-page;
2727
}
28+
29+
div#main {
30+
box-decoration-break: clone;
31+
}
2832
}

0 commit comments

Comments
 (0)