LibWeb: Make word-spacing and letter-spacing default value compute to 0

This commit is contained in:
Tim Ledbetter 2025-09-09 10:05:21 +01:00 committed by Sam Atkins
commit bd7348949a
Notes: github-actions[bot] 2025-09-10 15:14:47 +00:00
9 changed files with 564 additions and 3 deletions

View file

@ -3136,6 +3136,11 @@ NonnullRefPtr<StyleValue const> StyleComputer::compute_value_of_property(Propert
return compute_border_or_outline_width(specified_value, get_property_specified_value(PropertyID::BorderTopStyle), computation_context);
case PropertyID::OutlineWidth:
return compute_border_or_outline_width(specified_value, get_property_specified_value(PropertyID::OutlineStyle), computation_context);
case PropertyID::LetterSpacing:
case PropertyID::WordSpacing:
if (specified_value->to_keyword() == Keyword::Normal)
return LengthStyleValue::create(Length::make_px(0));
return specified_value;
case PropertyID::FillOpacity:
case PropertyID::FloodOpacity:
case PropertyID::Opacity: