Re: [csswg-drafts] [css-overflow] block-ellipsis rules don't match text-overflow rules (#7811)

So it seems there are a few different threads about this, indicating some demand, but nobody is working on a design or proposal? Thinking about our own use case, where we want text to be readable but display as much content as possible on the last line, I imagine a few different straw options:

1. Extend `line-break` to allow an extra token for the last rendered line:
```css
div {
  line-break: auto anywhere;
}
```
2. A new rule, e.g. `line-break-last`
```css
div {
  line-break: auto;
  line-break-last: anywhere;
}
```
3. A new keyword for `line-break`
```css
div {
  line-break: clamped-auto;
}
```
4. A new pseudo-element, e.g. `::last-line`, `::clamped-line` or something
```css
div {
  line-break: auto;
}
div::last-line {
  line-break: anywhere;
}
```

That last option is likely the most complex as it would allow more rules to be affected and require much more thought about potential issues than I've given it. Probably rules it out. I'm not really sure if I have a particular preference, but hopefully those are some ideas that can help start a discussion towards an actual design/proposal.

-- 
GitHub Notification of comment by andyearnshaw
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7811#issuecomment-1874045633 using your GitHub account


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

Received on Tuesday, 2 January 2024 13:46:06 UTC