[csswg-drafts] [css-text-overflow:ellipsis] consider giving more fine control on ellipsis (#5417)

nico3333fr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-overflow:ellipsis] consider giving more fine control on ellipsis ==
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](https://user-images.githubusercontent.com/2578321/89906583-db398980-dbeb-11ea-98c8-010d2eccb88e.png)

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

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5417 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 11 August 2020 14:15:59 UTC