Re: [csswg-drafts] [css-text-4] move "balance | stable | pretty" out of text-wrap (#9102)

> > However, I have a much stronger preference for `white-space-wrap: wrap | nowrap`.
> 
> Also, the wrapping still _usually_ only happens where there is white space, so it isn't totally wrong to think of this as a white-space-based property.

While the assumption that lines predominantly wrap at white spaces might hold true for English, the proportion of lines wrapping at white spaces can vary significantly from language to language, and even within different types of content.

Take my own language, Norwegian, as an example: we often use long compound words. To ensure proper line endings, it's essential to wrap lines at soft break opportunities within these words. Otherwise, we risk having less than optimal line endings, or “bad rags”. In a casual analysis of a random Norwegian book, I observed that around 20% of the line wraps occurred within words, not at white spaces.

On the web, inputting soft-break characters is quite challenging. This leads to web content in Norwegian (and likely in other languages) often suffering from bad rags. I feel that naming the property `white-space-wrap` could inadvertently perpetuate this bias towards English and neglect the typographical nuances of other languages.

My vote, if I had one, would be for `text-wrap-mode`.

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


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

Received on Monday, 9 October 2023 05:49:35 UTC