From ba30f298f907b1aaf9f79d93ffae6a2ab3ef269d Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 27 Mar 2023 13:13:21 +0100 Subject: [PATCH] LibWeb: Stop returning the left padding for resolved padding-bottom MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I accidentally broke this 8 months ago and nobody noticed. 😅 --- Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp index b484fd1a69..900384f994 100644 --- a/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp +++ b/Userland/Libraries/LibWeb/CSS/ResolvedCSSStyleDeclaration.cpp @@ -473,9 +473,9 @@ RefPtr ResolvedCSSStyleDeclaration::style_value_for_property(L return StyleValueList::create(move(values), StyleValueList::Separator::Space); } case CSS::PropertyID::PaddingBottom: + return style_value_for_length_percentage(layout_node.computed_values().padding().bottom()); case CSS::PropertyID::PaddingLeft: return style_value_for_length_percentage(layout_node.computed_values().padding().left()); - return style_value_for_length_percentage(layout_node.computed_values().padding().bottom()); case CSS::PropertyID::PaddingRight: return style_value_for_length_percentage(layout_node.computed_values().padding().right()); case CSS::PropertyID::PaddingTop: