Re: [csswg-drafts] [css-text] Preventing too-short final lines of blocks (Last Line Minimum Length) (#3473)

Hi folks. Writing with my TAG 🎩 on.

Given that Chromium is very keen to ship `text-wrap: pretty` and orphan control is one of the main heuristics employed in it (in fact, it was the only one when it was first submitted for [TAG review](https://github.com/w3ctag/design-reviews/issues/864)), it would be good to finalize the name of this property plus a way to use it to avoid orphans (even if it gets more syntax in the future), to prevent `text-wrap: pretty` being [evangelized further](https://twitter.com/chriscoyier/status/1681407724993798144) as a way to avoid orphans.

Switching to my CSS WG 🎩 now to discuss specific syntax:

What about breaking `text-wrap` into longhands to allow customizing some or all aspects of line breaking, and have keywords like `balance` or `pretty` correspond to certain values for these longhands. Orphan control could then be achieved via `text-wrap-orphans`, with high level values like `avoid` and `normal` for an MVP, while we debate syntax for giving authors more control. `text-wrap` pretty would then correspond to that semi-magical value. 

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


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

Received on Thursday, 3 August 2023 08:50:47 UTC