Skip to content

Enhance print styles to keep headings with following content#6

Merged
ojcified merged 1 commit into
tyclipsofrom
bugfix_page-breaks
Aug 13, 2025
Merged

Enhance print styles to keep headings with following content#6
ojcified merged 1 commit into
tyclipsofrom
bugfix_page-breaks

Conversation

@teilzeitgeist
Copy link
Copy Markdown
Member

Enhance print styles to keep headings with following content

  • Prevent h1/h2 from being isolated at page end using break-after/page-break-after
  • Avoid page breaks before content directly following h1/h2
  • Keep large elements (images, figures, screenshots) directly after headings together on same page
  • Added legacy page-break-* rules for better browser compatibility

- Prevent h1/h2 from being isolated at page end using break-after/page-break-after
- Avoid page breaks before content directly following h1/h2
- Keep large elements (images, figures, screenshots) directly after headings together on same page
- Added legacy `page-break-*` rules for better browser compatibility
@ojcified ojcified merged commit 0277243 into tyclipso Aug 13, 2025
2 checks passed
@ojcified ojcified deleted the bugfix_page-breaks branch August 13, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants