From a72788b8893b91322a748015df5eb82964d702c9 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Tue, 19 Sep 2023 14:46:24 +0100 Subject: [PATCH] LibWeb: Return after expanding ShorthandStyleValues We don't want to carry on doing things after we've handled these. --- Userland/Libraries/LibWeb/CSS/StyleComputer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp index f7afc699d1..92d679204e 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleComputer.cpp @@ -448,6 +448,7 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope auto& values = shorthand_value.values(); for (size_t i = 0; i < properties.size(); ++i) set_property_expanding_shorthands(style, properties[i], values[i], document, declaration, properties_for_revert); + return; } auto assign_edge_values = [&](PropertyID top_property, PropertyID right_property, PropertyID bottom_property, PropertyID left_property, auto const& values) {