Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • pagedjs pagedjs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 234
    • Issues 234
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pagedjs
  • pagedjspagedjs
  • Merge requests
  • !137

resolves #245 ignore impractical break-inside: avoid rules

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Boris Budini requested to merge issue-245-ignore-impractical-break-inside-avoid-rule into main Sep 11, 2020
  • Overview 7
  • Commits 2
  • Pipelines 0
  • Changes 24

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 Mar 30, 2022 by Fred Chasen
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: issue-245-ignore-impractical-break-inside-avoid-rule