Re: [csswg-drafts] [css-overflow] `block-ellipsis` interaction with height-based `line-clamp` (#10827)

I had assumed that ellipsis insertion happened last, after line breaks are decided, but I guess that's not specified one way or the other.

We do have this Note in the spec, which confirms that intent:

> Setting the [block overflow ellipsis](https://drafts.csswg.org/css-overflow-4/#block-overflow-ellipsis)'s [line-height](https://drafts.csswg.org/css2/#propdef-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.

but I think it is true that unless we normatively define that ellipsis insertion happens after the line breaks have been defined, then this property isn't guaranteed to hold.

Do you think there's any value in defining it otherwise?

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


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

Received on Friday, 6 September 2024 03:20:38 UTC