mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +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:
parent
0eedf3bfea
commit
174c940479
Notes:
sideshowbarker
2024-07-18 19:14:36 +09:00
Author: https://github.com/Cleverking2003
Commit: 174c940479
Pull-request: https://github.com/SerenityOS/serenity/pull/6550
Issue: https://github.com/SerenityOS/serenity/issues/6408
Reviewed-by: https://github.com/awesomekling
3 changed files with 44 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue