Skip to content

[css-overflow-4] Clip floats in clamp containers even when no clamping happens? #13669

@frivoal

Description

@frivoal

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?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Thursday Morning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions