1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:27:35 +00:00

LibWeb: Fix height calculation for absolutely positioned boxes

This commit fixes algorithm for computing auto height (CSS 2.2 10.6.7)
by including floating boxes into computation and implements one of the cases
for computing the height of absolutely positioned, non-replaced elements (10.6.4 rule 3)
This commit is contained in:
Egor Ananyin 2021-04-17 09:09:57 +03:00 committed by Andreas Kling
parent 602f98fe67
commit 1d343116a9
4 changed files with 68 additions and 46 deletions

View file

@ -56,8 +56,6 @@ private:
void compute_width_for_block_level_replaced_element_in_normal_flow(ReplacedBox&);
[[nodiscard]] static float compute_auto_height_for_block_level_element(const Box&);
void layout_initial_containing_block(LayoutMode);
void layout_block_level_children(Box&, LayoutMode);