Re: [csswg-drafts] [css-text-overflow:ellipsis] option to only insert ellipsis at word boundaries. (#4406)

`text-overflow` does indeed insert the ellipsis "anywhere", but for `line-clamp` the placement of the ellipsis is limited to soft wrap opportunities, which by default (in languages like English which use spaces between words) match with word boundaries. So for `line-clamp`, the specified behavior is already the requested behavior here.

For `text-overflow`, it is not, and it seems tempting. But `text-overflow` and `line-clamp` work kind of differently, and `text-overflow` is a paint time effect over overflowing content, not a truncation of content. I'm not sure how well that would work with the proposal here. For instance, what happens when you start scrolling? How would that work with the two values for each side of the line defined in level 4? https://drafts.csswg.org/css-overflow-4/#text-overflow

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

Received on Sunday, 29 December 2019 15:27:51 UTC