Skip to content

Commit e5b0932

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 ca85c5b commit e5b0932

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
@@ -6,4 +6,8 @@
66
section {
77
break-inside: avoid-page;
88
}
9+
10+
div#main {
11+
box-decoration-break: clone;
12+
}
913
}

0 commit comments

Comments
 (0)