Skip to content

[css-overflow] consider giving more fine control on ellipsis #5417

@nico3333fr

Description

@nico3333fr

https://drafts.csswg.org/css-overflow/ - I suppose.

Author should be able to control the way ellipsis happens and is computed, here is a simple example I face (I'm developing ProtonMail v4):

image

<span class="ellipsis">
  <span class="inline name">test account</span> 
  <span class="inline mail opacity-50">&lt;testaccount@protonmail.com&gt;</span>
</span>

Actually, I've to set up everything inline and apply the ellipsis on the entire block. Could be nice to be able to get something like this:

  • test account <testaccount@proton...>
  • test account <...>
  • test accou...

In this case, I would need:

  • something that allows me to say text-overflow: ellipsis <please use the color of the child element that is ellipsized> (which is currently not the case)
  • better: a kind of parameter for the "priority" on how to apply ellipsis stuff

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions