- From: Sebastian Zartner via GitHub <noreply@w3.org>
- Date: Fri, 01 Aug 2025 11:19:58 +0000
- To: public-css-archive@w3.org
One solution might also be to _allow_ forced line breaks but clip the string to be one line high. There's already a [note in the spec.](https://drafts.csswg.org/css-overflow-4/#:~:text=Setting%20the%20block%20overflow%20ellipsis) about avoiding layout reflows: > Setting the block overflow ellipsis's line-height to 0 makes sure that inserting it cannot cause the line’s height to grow, which could cause further relayouts and potentially cycles. This is almost equivalent to inserting the block overflow ellipsis as a paint-time operation, except that it still participates in alignment and justification. The downside is that unusually tall / deep glyphs in the block overflow ellipsis may overflow. So the ellipsis might be rendered as if `line-clamp: 1 '';` were applied to it. That would apply to the ellipses in both `text-overflow` and `block-ellipsis`. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12557#issuecomment-3144227617 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 1 August 2025 11:19:59 UTC