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

> When used together with the max-lines property, this doesn't pose a problem. But it does for height-based clamping, since the height of the lines determines in which line the ellipsis is placed, which in turn determines the height of the lines.

I thought we had been clear in the spec about this, but re-reading, I guess not: the intent is that, regardless of clamping on max-lines or clamping on height, you pick where you break based on the content before inserting the ellipsis. Then you insert the ellipsis in the last line, and you do not reevaluate which line that is or whether to add back more content after you've done that, even if the ellipsis' insertion causes the line height to change (in any case, it may only shrink, never grow). (pretty sure we discussed this before, but unfortunately I've not yet been able to locate where).

We could/should have a separate discussion (I plan to file an issue) about whether the spec's approach to inserting the ellipsis is justified (I think it is), but in any case, we can easily solve the potential circularity here.

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


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

Received on Wednesday, 4 September 2024 05:05:23 UTC