From 18f1c49804f3888d3f588f68fee9f73e04258588 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 19 Dec 2020 19:30:49 +0100 Subject: [PATCH] LibWeb: Don't leave "border" CSS property around after expansion The "border" property is a shorthand that expands into multiple longhand properties. We shouldn't leave it set in a StyleProperties after expanding it. --- Libraries/LibWeb/CSS/StyleResolver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Libraries/LibWeb/CSS/StyleResolver.cpp b/Libraries/LibWeb/CSS/StyleResolver.cpp index 202fa85b31f..95a8cc4c84a 100644 --- a/Libraries/LibWeb/CSS/StyleResolver.cpp +++ b/Libraries/LibWeb/CSS/StyleResolver.cpp @@ -248,6 +248,7 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope set_property_expanding_shorthands(style, CSS::PropertyID::BorderRight, value, document); set_property_expanding_shorthands(style, CSS::PropertyID::BorderBottom, value, document); set_property_expanding_shorthands(style, CSS::PropertyID::BorderLeft, value, document); + return; } if (property_id == CSS::PropertyID::BorderTop