Skip to content

[css-text-overflow:ellipsis] option to only insert ellipsis at word boundaries. #4406

@aghassemi

Description

@aghassemi

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 ...   |
-------------------

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions