From 7ec7729e1be385f9fd7861b167599b7159b20151 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 28 Oct 2021 18:01:04 +0200 Subject: [PATCH] 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.) --- Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp index 6cbedac7ff..06f50ba25f 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp @@ -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.