Skip to content

[css-overflow] Consider support for ellipsizing only whole words #1574

@phistuck

Description

@phistuck

https://drafts.csswg.org/css-overflow/ - I think.
Authors should be able to control the way ellipsizing happens - whether it shows incomplete words, or only whole words. I would even split the incomplete words way to two sub-ways -

  • Exclude any punctuation right before the ellipsis even though the available space allows it to render ("don't" and "Person" can be be "don..." and "Person..." instead of "Don'..." and "Person<", respectively). Basically have another step before actually adding the ellipsis - truncate up to the first letter or number and then add an ellipsis.
  • Include any punctuation right before the ellipsis as the available space allows it to render

The lack of this feature (controlling whole versus incomplete) as well as #390 render text-overflow: ellipsis; useful in very few cases, because usability experts (at least those with which I work) usually do not want incomplete words to show up on the screen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions