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

I actually implemented this years ago (named `-apple-trailing-word: -apple-partially-balanced`) as a nonstandard property because we got some internal requests for this. (I then removed support once our internal teams stopped using it). And now we're getting more internal requests for this.

It's just internal requests, though:
- https://stackoverflow.com/questions/4823722/how-can-i-avoid-one-word-on-the-last-line-with-css
- https://stackoverflow.com/questions/31974448/how-can-i-prevent-having-just-one-hanging-word-on-a-new-line-in-an-html-element/31974553

This is something we'd like to see added to CSS.

We could either do it the way I did years ago (a simple on/off switch) or we could mirror the design of `orphans` and `widows` and have it take an integer value.

-- 
GitHub Notification of comment by litherum
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2396#issuecomment-1452873134 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 02:41:23 UTC