mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
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:
parent
72cbca892a
commit
18f1c49804
Notes:
sideshowbarker
2024-07-19 00:44:05 +09:00
Author: https://github.com/awesomekling
Commit: 18f1c49804
1 changed files with 1 additions and 0 deletions
|
@ -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::BorderRight, value, document);
|
||||||
set_property_expanding_shorthands(style, CSS::PropertyID::BorderBottom, value, document);
|
set_property_expanding_shorthands(style, CSS::PropertyID::BorderBottom, value, document);
|
||||||
set_property_expanding_shorthands(style, CSS::PropertyID::BorderLeft, value, document);
|
set_property_expanding_shorthands(style, CSS::PropertyID::BorderLeft, value, document);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (property_id == CSS::PropertyID::BorderTop
|
if (property_id == CSS::PropertyID::BorderTop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue