Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for css orphans and widows #127

Open
bashuss opened this issue Feb 25, 2024 · 1 comment
Open

support for css orphans and widows #127

bashuss opened this issue Feb 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bashuss
Copy link

bashuss commented Feb 25, 2024

Is your feature request related to a problem? Please describe.
I tested css styles for proper page breaks. orphans and widows are important here. I could not get the styles to work on

and

. I did not do further tests

Describe the solution you'd like
orphans and widows should work like described here
https://developer.mozilla.org/en-US/docs/Web/CSS/orphans
https://developer.mozilla.org/en-US/docs/Web/CSS/widows

Describe alternatives you've considered
For a good control over page breaks with css, I see no alternatives. Remaining single lines or just breaking one word to the next page needs to be avoided for well designed documents.

@richard-scryber
Copy link
Owner

Hi Bernd

I understand the problem with orphans and widows, thank you.
As a work around the css break-inside: avoid; works, set on a parent, so the layout is kept together.
I know this is sometimes not possible with very long passages, and causes me visual pain too.

I will add it to the list.

@richard-scryber richard-scryber added the enhancement New feature or request label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants