From a5422a210f27f48a8a086ee12969c510c416f8fa Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 17 Dec 2020 01:46:51 +0100 Subject: [PATCH] LibWeb: Use the correct containing block for position:absolute width --- Libraries/LibWeb/Layout/BlockFormattingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Libraries/LibWeb/Layout/BlockFormattingContext.cpp index 9e32619a2cb..d97f4c93e19 100644 --- a/Libraries/LibWeb/Layout/BlockFormattingContext.cpp +++ b/Libraries/LibWeb/Layout/BlockFormattingContext.cpp @@ -274,7 +274,7 @@ void BlockFormattingContext::compute_height_for_block_level_replaced_element_in_ void BlockFormattingContext::compute_width_for_absolutely_positioned_block(Box& box) { - auto& containing_block = context_box(); + auto& containing_block = *box.containing_block(); auto& style = box.style(); auto zero_value = CSS::Length::make_px(0);