diff --git a/Libraries/LibWeb/Animations/KeyframeEffect.cpp b/Libraries/LibWeb/Animations/KeyframeEffect.cpp index 846518eb4fc..91c06be2488 100644 --- a/Libraries/LibWeb/Animations/KeyframeEffect.cpp +++ b/Libraries/LibWeb/Animations/KeyframeEffect.cpp @@ -869,7 +869,6 @@ WebIDL::ExceptionOr KeyframeEffect::set_keyframes(Optionaltarget(); for (auto& keyframe : m_keyframes) { Animations::KeyframeEffect::KeyFrameSet::ResolvedKeyFrame resolved_keyframe; @@ -877,9 +876,6 @@ WebIDL::ExceptionOr KeyframeEffect::set_keyframes(Optional(keyframe.computed_offset.value() * 100 * AnimationKeyFrameKeyScaleFactor); for (auto [property_id, property_value] : keyframe.parsed_properties()) { - if (property_value->is_unresolved() && target) - property_value = CSS::Parser::Parser::resolve_unresolved_style_value(CSS::Parser::ParsingParams { target->document() }, *target, pseudo_element_type(), property_id, property_value->as_unresolved()); - resolved_keyframe.properties.set(property_id, property_value); CSS::StyleComputer::for_each_property_expanding_shorthands(property_id, property_value, [&](CSS::PropertyID longhand_id, CSS::StyleValue const&) { m_target_properties.set(longhand_id); diff --git a/Tests/LibWeb/Text/expected/css/animation-changing-custom-property.txt b/Tests/LibWeb/Text/expected/css/animation-changing-custom-property.txt new file mode 100644 index 00000000000..f2b5e94d8ea --- /dev/null +++ b/Tests/LibWeb/Text/expected/css/animation-changing-custom-property.txt @@ -0,0 +1 @@ +rgb(0, 64, 0) diff --git a/Tests/LibWeb/Text/input/css/animation-changing-custom-property.html b/Tests/LibWeb/Text/input/css/animation-changing-custom-property.html new file mode 100644 index 00000000000..85bce155d2c --- /dev/null +++ b/Tests/LibWeb/Text/input/css/animation-changing-custom-property.html @@ -0,0 +1,17 @@ + + +
+ + +