Skip to content

resolves #245 ignore impractical break-inside: avoid rules

The logic is implemented in the chunker. The idea is to:

  • create a temporary page,
  • add the remaining content,
  • check if the content contains an element with the rule break-inside: avoid
  • check if this element will overflow

If that's the case, then we remove the rule break-inside: avoid and ask Paged.js to "reflow" the previous/current page. In all cases, we remove the temporary page.

resolves #245

Edited by Fred Chasen

Merge request reports