LibWeb: Reset animated CSS properties for pseudo elements

Previously we were resetting animated properties if animation effect's
target is not a pseudo element.
This commit is contained in:
Aliaksandr Kalenik 2025-05-28 15:12:37 +02:00 committed by Tim Ledbetter
commit 6a029fb6d9
Notes: github-actions[bot] 2025-05-28 16:37:19 +00:00
6 changed files with 8 additions and 13 deletions

View file

@ -1571,8 +1571,6 @@ void Document::update_animated_style_if_needed()
if (animation->is_idle() || animation->is_finished())
continue;
if (auto effect = animation->effect()) {
if (auto* target = effect->target())
target->reset_animated_css_properties();
effect->update_computed_properties();
}
}