Orphans can be eliminated with the currently existing conditional page break:
(300 is height in pixels there)
Also you may format portions of text (or starting and ending parts or chapters) as
s and to define “page-break-inside: avoid” CSS style for them. It should cure both orphans and widows.