LibWeb: Interpolate text-shadow values as a shadow list

This is the same behavior as is currently used for `box-shadow`.
This commit is contained in:
Tim Ledbetter 2025-07-29 18:57:12 +01:00 committed by Jelle Raaijmakers
commit 62e52163d6
Notes: github-actions[bot] 2025-07-30 08:52:58 +00:00
3 changed files with 298 additions and 1 deletions

View file

@ -288,7 +288,7 @@ ValueComparingRefPtr<CSSStyleValue const> interpolate_property(DOM::Element& ele
// such a state, the transformed element is not rendered.
return {};
}
if (property_id == PropertyID::BoxShadow) {
if (property_id == PropertyID::BoxShadow || property_id == PropertyID::TextShadow) {
if (auto interpolated_box_shadow = interpolate_box_shadow(element, calculation_context, from, to, delta, allow_discrete))
return *interpolated_box_shadow;
return interpolate_discrete(from, to, delta, allow_discrete);