Re: [csswg-drafts] [css-overflow] How do empty blocks affect line-clamping by height? (#12663)

The CSS Working Group just discussed `[css-overflow] How do empty blocks affect line-clamping by height?`, and agreed to the following:

* `RESOLVED: Close no change until/unless users complain.`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> andreubotella: Split off from a previous discussion on abspos and stuff.<br>
&lt;fantasai> andreubotella: When clamping by height, the last possible clamp point that doesn't overflow is chosen.<br>
&lt;fantasai> andreubotella: If you have a block element that has no content, it would clamp after it.<br>
&lt;fantasai> andreubotella: That's probably fine, except it means that if there's a line before that empty block, it will not be ellipsized.<br>
&lt;fantasai> andreubotella: The presence or absence of that block before/after clamp point, if that block is empty it doesn't matter. But if the block has position:relative, and contains an abspos, it does matter because it affects whether abspos is hidden or shown<br>
&lt;fantasai> andreubotella: this can also affect boxes that have non-zero content, but height set to zero<br>
&lt;fantasai> andreubotella: In those cases, the content of the box would also be shown or not shown depending.<br>
&lt;fantasai> andreubotella: I think it makes sense to clamp after zero-height boxes. Find the last possible clamp point before the height overflows<br>
&lt;fantasai> florian: Main downside is because last thing before clamp point isn't the line, we don't see the ellipsis<br>
&lt;astearns> ack fantasai<br>
&lt;fantasai> florian: Although in case of zero height *and* content, ellipsis would be seen on that content.<br>
&lt;fantasai> florian: but I guess it's ok, don't put empty &lt;div>s where you don't need them.<br>
&lt;astearns> q+<br>
&lt;fantasai> andreubotella: If you have a box which is zero-height, but does have content (whether overflowing or abspos), you probably don't want the ellipsis to be placed on the previous line<br>
&lt;astearns> q-<br>
&lt;fantasai> andreubotella: should we depend on that?<br>
&lt;astearns> fantasai: if you have a para and then a block that’s a horiz rule<br>
&lt;astearns> fantasai: do you want that para to be ellipsised?<br>
&lt;fantasai> andreubotella: Currently it's not<br>
&lt;fantasai> andreubotella: block-ellipsis applies to the last line before clamp point if only thing in between are abspos or end of element<br>
&lt;astearns> fantasai: is that the behavior you want?<br>
&lt;fantasai> florian: We discussed earlier, and resolved on this behavior given no perfect solution.<br>
&lt;fantasai> andreubotella: For some use cases you might want it, and for others you might not.<br>
&lt;fantasai> andreubotella: [missed example]<br>
&lt;fantasai> astearns: So proposed resolution is no special handling for zero-height or empty blocks?<br>
&lt;andreubotella> s/[missed example]/if you have a line, and then an independent formatting context, you don't want the line before it to have the ellipsis/<br>
&lt;astearns> fantasai: could we just say the kinds of blocks that inhibit margin collapsing…<br>
&lt;fantasai> florian: Are you saying we should lean more on margin-collapsing-through??<br>
&lt;fantasai> astearns: Could close no change and then explore later<br>
&lt;fantasai> florian: It's not interaction with margin-collapsing, it's trying to identify which blocks we consider and those we don't<br>
&lt;fantasai> fantasai: No special handling, if people complain we'll reconsider<br>
&lt;fantasai> PROPOSED: Close no change until/unless users complain.<br>
&lt;fantasai> RESOLVED: Close no change until/unless users complain.<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12663#issuecomment-3303610922 using your GitHub account


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

Received on Wednesday, 17 September 2025 15:47:41 UTC