LibWeb: Ignore non-animatable properties in keyframes

Gains us 21 WPT tests
This commit is contained in:
Callum Law 2025-10-30 20:55:19 +13:00 committed by Alexander Kalenik
parent ed0b741a26
commit 2447b8a759
Notes: github-actions[bot] 2025-11-02 22:55:29 +00:00
3 changed files with 166 additions and 0 deletions

View file

@ -2778,6 +2778,9 @@ void StyleComputer::make_rule_cache_for_cascade_origin(CascadeOrigin cascade_ori
auto key = static_cast<u64>(keyframe.key().value() * Animations::KeyframeEffect::AnimationKeyFrameKeyScaleFactor);
auto const& keyframe_style = *keyframe.style();
for (auto const& it : keyframe_style.properties()) {
if (!is_animatable_property(it.property_id))
continue;
// Unresolved properties will be resolved in collect_animation_into()
for_each_property_expanding_shorthands(it.property_id, it.value, [&](PropertyID shorthand_id, StyleValue const& shorthand_value) {
animated_properties.set(shorthand_id);