LibWeb: Use expanded longhands when computing transition properties

Using longhands rather than expanded longhands meant for instance that
we wouldn't transition `border-top-width` if we had `border` as the
transition property.
This commit is contained in:
Callum Law 2025-09-11 15:50:54 +12:00 committed by Tim Ledbetter
commit 0209e502cf
Notes: github-actions[bot] 2025-09-11 05:09:17 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -1255,7 +1255,7 @@ static void compute_transitioned_properties(ComputedProperties const& style, DOM
auto transition_property = maybe_property.release_value();
if (property_is_shorthand(transition_property)) {
for (auto const& prop : longhands_for_shorthand(transition_property))
for (auto const& prop : expanded_longhands_for_shorthand(transition_property))
properties_for_this_transition.append(prop);
} else {
properties_for_this_transition.append(transition_property);