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.
This commit is contained in:
Andreas Kling 2020-12-19 19:30:49 +01:00
parent 72cbca892a
commit 18f1c49804
Notes: sideshowbarker 2024-07-19 00:44:05 +09:00

View file

@ -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