1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00

LibWeb: Fix height computation (again) :^)

Height computation algorithm is actually
different for absolutely positioned boxes
and block formatting contexts (where it doesn't include floats)
Fixes #6408
This commit is contained in:
Egor Ananyin 2021-04-22 10:59:04 +03:00 committed by Andreas Kling
parent 0eedf3bfea
commit 174c940479
3 changed files with 44 additions and 2 deletions

View file

@ -160,7 +160,7 @@ static Gfx::FloatSize solve_replaced_size_constraint(float w, float h, const Rep
return { w, h };
}
float FormattingContext::compute_auto_height_for_block_level_element(const Box& box)
static float compute_auto_height_for_block_level_element(const Box& box)
{
Optional<float> top;
Optional<float> bottom;