Re: [csswg-drafts] [css-text-4] typographic widows/orphans (#2396)

See also https://github.com/w3c/csswg-drafts/issues/7704 on the same topic

I made the comment there that I liked the syntax used by PrinceXML - they use a non-standard extension to `widows` for this:

> Another feature in Prince for Books are the "fractional widows": the [widows](https://www.princexml.com/doc/css-props#prop-widows) property is allowed a value expressed as percentage.
> ```
>     p {
>       widows: 50%;
>     }
> ```
> This indicates that one widow line is accepted, as long as the line width is at least the given percentage value of the available page width, to avoid the worst case of having a widow line that is only one or two words long.
> 

See  https://www.princexml.com/doc/prince-for-books/#fractional-widows

-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2396#issuecomment-1453281236 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 3 March 2023 10:08:19 UTC