This is a follow up to #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?
This is a follow up to #12665, where we resolved that:
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: 4orline-clamp: 8, (orline-clamp: autowithmax-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?