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

> For « nowrap does not remove wrap opportunities, it just prevents wrapping » I suspect that can be changed, and have the definition of `text-wrap-mode: nowrap` say that it suppresses opportunities. In that case, yes, if the whole line (or the whole block) is set to nowrap, then that means you cannot insert the ellipsis in the middle of the line, and you either have to tack it at the very end—including after preserved spaces if any—if there's room, or have to remove the whole line to make room if there isn't, but that seems appropriate: if the content is indivisible, it is indivisible.

IIUC, if there's a forced line break inside `text-wrap-mode: nowrap` text and there's remaining space to put the ellipsis without overflowing, then the ellipsis gets inserted at the end; otherwise, the line gets displaced by the ellipsis, right?

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


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

Received on Friday, 6 June 2025 18:12:02 UTC