mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
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:
parent
3ae48776fd
commit
62e52163d6
Notes:
github-actions[bot]
2025-07-30 08:52:58 +00:00
Author: https://github.com/tcl3
Commit: 62e52163d6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5651
Reviewed-by: https://github.com/gmta ✅
3 changed files with 298 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue