- From: Andreu Botella via GitHub <sysbot+gh@w3.org>
- Date: Tue, 10 Sep 2024 00:22:03 +0000
- To: public-css-archive@w3.org
> 3. if we did clamp, remove some content on the last line to make room for the ellipsis, and then insert it (don't re-wrap after doing that) With `continue: collapse`, would that content be inserted on the next line? It is hidden, but its position can be detected from JS. And if so, that means that that content can't just be hidden the way it currently is, since I think otherwise you'd end up with duplicated words in the accessibility tree. -------------- I think the interaction with `text-wrap-style` needs to be looked at more. `text-wrap: balance` must only apply to the lines before clamp (and as far as I can tell, Chromium's implementation of `text-wrap: pretty` does the same). But if the lines can have content with different heights, then which lines are before clamp cannot be determined independently from balancing/prettifying. If the line breaks are chosen as with `text-wrap-style: auto`, and then a particular line number is chosen as the clamp point, then the balanced/prettified layout might possibly have a greater height. I think the same would apply if the initial layout balances/prettifies the whole paragraph. -- GitHub Notification of comment by andreubotella Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10823#issuecomment-2339375815 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 10 September 2024 00:22:04 UTC