diff --git a/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp b/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp index d18a0ffc97..a503155b0b 100644 --- a/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp +++ b/Userland/Libraries/LibWeb/Animations/KeyframeEffect.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include namespace Web::Animations { @@ -825,8 +826,10 @@ WebIDL::ExceptionOr KeyframeEffect::set_keyframes(Optional(keyframe.computed_offset.value() * 100 * AnimationKeyFrameKeyScaleFactor); for (auto const& [property_id, property_value] : keyframe.parsed_properties()) { - m_target_properties.set(property_id); - resolved_keyframe.resolved_properties.set(property_id, property_value); + CSS::StyleComputer::for_each_property_expanding_shorthands(property_id, property_value, [&](CSS::PropertyID shorthand_id, CSS::StyleValue const& shorthand_value) { + m_target_properties.set(shorthand_id); + resolved_keyframe.resolved_properties.set(shorthand_id, NonnullRefPtr { shorthand_value }); + }); } keyframe_set->keyframes_by_key.insert(key, resolved_keyframe);