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

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

From: Ali Ghassemi via GitHub <sysbot+gh@w3.org>
Date: Wed, 09 Oct 2019 23:50:59 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-504952890-1570665058-sysbot+gh@w3.org>
aghassemi has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-overflow:ellipsis] options to only insert ellipsis at word boundaries. ==
Currently both `text-overflow:ellipsis` and `line-clamp` CSS properties can clip words in the middle and insert ellipsis in the middle of a word.

This can result in inappropriate words being show to the users. 

Having an option to only allow clipping at word boundaries can eliminate this problem. This can leave extra whitespace at the end, but might be an acceptable trade off. 

For example:
Instead of:
Lorem ipsum do... |
one may prefer:
Lorem ipsum ...   |

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4406 using your GitHub account
Received on Wednesday, 9 October 2019 23:51:01 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC