mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Handle single value properties when normalizing transition lists
Previously, if a transition property was not wrapped in a list, it would be replaced with the default value in `StyleComputer::compute_transitioned_properties`.
This commit is contained in:
parent
1f8f3804a3
commit
7a391f419a
|
|
@ -1342,6 +1342,12 @@ static void compute_transitioned_properties(ComputedProperties const& style, DOM
|
|||
auto const* style_value = style.maybe_null_property(property);
|
||||
StyleValueVector list;
|
||||
|
||||
if (style_value && !style_value->is_value_list()) {
|
||||
for (size_t i = 0; i < properties.size(); i++)
|
||||
list.append(*style_value);
|
||||
return list;
|
||||
}
|
||||
|
||||
if (!style_value || !style_value->is_value_list() || style_value->as_value_list().size() == 0) {
|
||||
auto default_value = make_default_value();
|
||||
for (size_t i = 0; i < properties.size(); i++)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user