Re: [csswg-drafts] [css-overflow] [css-text] Interaction between whitespace collapsing and line-clamp (#12008)

>The current behavior of -webkit-line-clamp in all browsers is that, if adding the ellipsis to the line will make it overflow, characters (well, glyphs) are removed one by one from the end of the line until it fits, and then the ellipsis is placed. This means the last character that was not clamped might very well be a space.

@andreubotella thank you for the explanation. That makes sense of `white-space: pre-wrap`. However, with `white-space: normal`, it seems to have a slightly different behavior. A trailing space is allowed some times but not others:

https://github.com/user-attachments/assets/b3c1b153-f2b8-4225-859d-6ea178023b98

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


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

Received on Sunday, 31 August 2025 20:26:48 UTC