summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/FormattingContext.h
diff options
context:
space:
mode:
authorEgor Ananyin <ananinegor@gmail.com>2021-04-17 09:09:57 +0300
committerAndreas Kling <kling@serenityos.org>2021-04-17 09:48:27 +0200
commit1d343116a9c814869bc708dffb61d9b100be0eda (patch)
tree732a7fa1de49e9d7cb4a7710d2f3a1854ed35b12 /Userland/Libraries/LibWeb/Layout/FormattingContext.h
parent602f98fe671a56724f2febcceb7b03b0da80a51c (diff)
downloadserenity-1d343116a9c814869bc708dffb61d9b100be0eda.zip
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)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/FormattingContext.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/FormattingContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.h b/Userland/Libraries/LibWeb/Layout/FormattingContext.h
index aad024a04e..213be06a1b 100644
--- a/Userland/Libraries/LibWeb/Layout/FormattingContext.h
+++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.h
@@ -58,6 +58,7 @@ 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);