- From: Florian Rivoal via GitHub <noreply@w3.org>
- Date: Tue, 17 Mar 2026 03:46:14 +0000
- To: public-css-archive@w3.org
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-overflow-4] Clip floats in clamp containers even when no clamping happens? == This is a follow up to https://github.com/w3c/csswg-drafts/issues/12665, where we resolved that: > RESOLVED: Floats do not increase the height of a line clamp container. They are clipped to its content edge. We did not discuss the situation where there isn't a clamp point, such as when there aren't enough lines. Say you have 4 lines of content, and a very tall float (say, 500px high), anchored on line 2. If we `line-clamp: 3`, it's clear we get 3 lines of content, and however much of the float will fit in the height necessary to fit those 3 lines, with the rest being clipped. But do we also clip the float at the end of line 4 if there was `line-clamp: 4` or `line-clamp: 8`, (or `line-clamp: auto` with `max-height: 300px`)? The earlier resolution suggests that we do, but we could also consider that since clamp-containers are independent formatting contexts, and since there's not enough lines to introduce a clamp point, then no clamping happens, and the float adds clearance to the clamping container as it would to any BFC. What do we want to do? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13669 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 17 March 2026 03:46:15 UTC