scryber.core icon indicating copy to clipboard operation
scryber.core copied to clipboard

support for css orphans and widows

Open bashuss opened this issue 1 year ago • 1 comments

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.

bashuss avatar Feb 25 '24 13:02 bashuss

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 avatar Feb 26 '24 09:02 richard-scryber