LibWeb: Support calc within linear() easing function

This commit is contained in:
Callum Law 2025-10-09 23:40:46 +13:00 committed by Sam Atkins
parent 91925db9ca
commit 2f83356c0f
Notes: github-actions[bot] 2025-10-20 10:29:34 +00:00
6 changed files with 94 additions and 34 deletions

View file

@ -607,6 +607,7 @@ Optional<CSS::EasingFunction> AnimationEffect::parse_easing_string(StringView va
{
if (auto style_value = parse_css_value(CSS::Parser::ParsingParams(), value, CSS::PropertyID::AnimationTimingFunction)) {
if (style_value->is_easing())
// FIXME: We should absolutize style_value to resolve relative lengths within calcs
return CSS::EasingFunction::from_style_value(*style_value);
}