W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

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

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Sun, 29 Dec 2019 15:27:49 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-569515599-1577633268-sysbot+gh@w3.org>
`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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:06 UTC