1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

LibWeb: Don't force line box fragments height to be at least line-height

I don't remember why we did things this way, but it's clearly not right
to stretch fragments vertically. Instead, we should just align their
bottom to the appropriate line (as we already do.)
This commit is contained in:
Andreas Kling 2021-10-28 18:01:04 +02:00
parent 88c32836d8
commit 7ec7729e1b

View file

@ -141,8 +141,6 @@ void InlineFormattingContext::run(Box&, LayoutMode layout_mode)
if (fragment.type() == LineBoxFragment::Type::Leading || fragment.type() == LineBoxFragment::Type::Trailing) {
fragment.set_height(max_height);
} else {
fragment.set_height(max(min_line_height, fragment.height()));
}
// Vertically align everyone's bottom to the line.