Re: [csswg-drafts] [css-overflow] interaction between text-overflow:ellipsis and line-clamp (#10823)

It seems like Chromium and Gecko turn off `text-overflow: ellipsis` inside `-webkit-line-clamp`, but Webkit doesn't. Interestingly, as `webkit-line-clamp-037` shows, if the `-webkit-line-clamp` line number is the last line, then it doesn't ellipsize, *regardless* of `text-overflow: ellipsis`. I suspect this is a bug.

As far as I can tell, the ellipsis behavior of `-webkit-line-clamp` in all browsers is "line break, then on the line to ellipsize, behave like `text-overflow: ellipsis` except that the ellipsis should be added even if the line doesn't overflow". No browser currently has the `block-overflow` behavior where the ellipsis is taken into account when line breaking. If this behavior stays the same (which is a different issue), then depending on the implementation, it might be hard to make `block-overflow` and `text-overflow` interact on the same line.

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


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

Received on Tuesday, 3 September 2024 08:19:07 UTC