mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Ignore non-animatable properties in keyframes
Gains us 21 WPT tests
This commit is contained in:
parent
ed0b741a26
commit
2447b8a759
Notes:
github-actions[bot]
2025-11-02 22:55:29 +00:00
Author: https://github.com/Calme1709
Commit: 2447b8a759
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6642
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 166 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue