You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that page-break-before: always did nothing in my generated PDF, and after testing a bit I boiled it down to this: page-break-before: always is not supported on a <section></section> element.
Ditto for page-break-after: always.
A simple workaround is changing the <section class="break-before"></section> HTML to <div class="break-before"></div>.
I thought I'd document this here.
The text was updated successfully, but these errors were encountered:
I think what's going on here is that section is not mentioned in the renderer's default style sheet so defaults to inline display where page break properties are not supported.
We should modernise the stylesheet, but in the meantime you can add display: block to section in your styles.
I noticed that
page-break-before: always
did nothing in my generated PDF, and after testing a bit I boiled it down to this:page-break-before: always
is not supported on a<section></section>
element.Ditto for
page-break-after: always
.A simple workaround is changing the
<section class="break-before"></section>
HTML to<div class="break-before"></div>
.I thought I'd document this here.
The text was updated successfully, but these errors were encountered: