LibWeb: Apply remaining vertical float clearance to next block level box

Whenever we generate line boxes, we might end up with a residual
vertical float clearance by way of having a `<br>` with `clear: ..` set.
Set the Y offset of the next block level box to place by this vertical
clearance.

Relates to #4058.
This commit is contained in:
Jelle Raaijmakers 2025-03-27 14:59:49 +00:00
commit 15103d172c
Notes: github-actions[bot] 2025-03-27 17:22:53 +00:00
6 changed files with 47 additions and 5 deletions

View file

@ -84,9 +84,8 @@ void InlineFormattingContext::run(AvailableSpace const& available_space)
CSSPixels content_height = 0;
for (auto& line_box : m_containing_block_used_values.line_boxes) {
for (auto& line_box : m_containing_block_used_values.line_boxes)
content_height += line_box.height();
}
// NOTE: We ask the parent BFC to calculate the automatic content width of this IFC.
// This ensures that any floated boxes are taken into account.