mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb: Use initial value for animation start if it does not exist
This fixes an issue where a property could not be animated unless the element had a specified value for that property somewhere in its styling.
This commit is contained in:
parent
65858154de
commit
4e27d07ff2
Notes:
sideshowbarker
2024-07-17 02:05:41 +09:00
Author: https://github.com/mattco98
Commit: 4e27d07ff2
Pull-request: https://github.com/SerenityOS/serenity/pull/23311
Issue: https://github.com/SerenityOS/serenity/issues/21570
1 changed files with 3 additions and 0 deletions
|
@ -923,6 +923,9 @@ ErrorOr<void> StyleComputer::collect_animation_into(JS::NonnullGCPtr<Animations:
|
|||
|
||||
auto resolved_end_property = resolve_property(end_property.value());
|
||||
|
||||
if (resolved_end_property && !resolved_start_property)
|
||||
resolved_start_property = CSS::property_initial_value(document().realm(), it.key);
|
||||
|
||||
if (!resolved_start_property || !resolved_end_property)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue