1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +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

@ -38,7 +38,6 @@ protected:
float preferred_minimum_width { 0 };
};
static float compute_auto_height_for_block_level_element(const Box& box);
static float tentative_width_for_replaced_element(const ReplacedBox&, const CSS::Length& width);
static float tentative_height_for_replaced_element(const ReplacedBox&, const CSS::Length& width);