Should Css "orphan" Operate At Line Or Block Level?
I'm rendering HTML documents to PDF. Previously I was using Wkhtmltopdf, but it looks like Dompdf offers better support for page breaks, so I expect I will switch to that. I'd like
Solution 1:
As mentioned by liZe on the WeasyPrint issue tracker:
Orphans / Widows only work for line-boxes, not for block-like boxes.
Fortunately, you can define rules like:
li:last-child { break-before: avoid; } li:first-child { break-after: avoid; }
Post a Comment for "Should Css "orphan" Operate At Line Or Block Level?"