mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
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:
parent
af431d800b
commit
0209e502cf
Notes:
github-actions[bot]
2025-09-11 05:09:17 +00:00
Author: https://github.com/Calme1709
Commit: 0209e502cf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6161
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue