LibWeb: Use computed value of font-size in keyframes

Remaining test failures in font-size-interpolation-00* are either:
 - Rounding of font-size to CSSPixels when setting the expected value
 - Not clamping negative values from the point of view of
   getComputedStyle (used values are still clamped)
This commit is contained in:
Callum Law 2025-08-31 17:10:31 +12:00 committed by Sam Atkins
commit cfbe0244d4
Notes: github-actions[bot] 2025-09-19 09:08:46 +00:00
3 changed files with 38 additions and 14 deletions

View file

@ -2101,8 +2101,7 @@ WillChange ComputedProperties::will_change() const
CSSPixels ComputedProperties::font_size() const
{
// FIXME: Respect animated font-size here once we store it in computed form
return property(PropertyID::FontSize, WithAnimationsApplied::No).as_length().length().absolute_length_to_px();
return property(PropertyID::FontSize).as_length().length().absolute_length_to_px();
}
}