- From: Myles C. Maxfield via GitHub <sysbot+gh@w3.org>
- Date: Tue, 04 Jul 2023 20:59:25 +0000
- To: public-css-archive@w3.org
I dup'ed https://github.com/w3c/csswg-drafts/issues/2396 to this issue. From that other issue, I said: > 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 not 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. We are now getting _even more_ requests for this. (Every time this comes up, I always go searching for which property controls this, only to be surprised _yet again_ that there is no way to do this and it's impossible.) - https://stackoverflow.com/questions/31974448/how-can-i-prevent-having-just-one-hanging-word-on-a-new-line-in-an-html-element (upvoted 42 times) - https://stackoverflow.com/questions/4823722/how-can-i-avoid-one-word-on-the-last-line-with-css (upvoted 19 times) - https://stackoverflow.com/questions/38296454/prevent-line-break-between-last-word-of-an-element-and-another-element (upvoted 6 times) It's probably also worth noting that the requests we have for this feature are not about the number of "words" on that last line, as that necessarily doesn't actually solve the visual problem when the last n words are short (or, you're writing in Chinese and the last few words are each just single characters). The request, instead, is to say "the last line is at least x% of the width of the block container." -- GitHub Notification of comment by litherum Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3473#issuecomment-1620737159 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 4 July 2023 20:59:27 UTC