Skip to content

Commit 81b75a0

Browse files
committed
Fix to support modern CSS options
1 parent a8d1354 commit 81b75a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugin/pagebreaks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Worker.prototype.toContainer = function toContainer() {
6363
var style = window.getComputedStyle(el);
6464
// TODO: Handle 'left' and 'right' correctly.
6565
// TODO: Add support for 'avoid' on breakBefore/After.
66-
var cssOpt = ['always', 'left', 'right'];
66+
var cssOpt = ['always', 'page', 'left', 'right'];
6767
rules = {
6868
before: rules.before || cssOpt.indexOf(style.breakBefore || style.pageBreakBefore) !== -1,
6969
after: rules.after || cssOpt.indexOf(style.breakAfter || style.pageBreakAfter) !== -1,

0 commit comments

Comments
 (0)