mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb: Make word-spacing and letter-spacing default value compute to 0
This commit is contained in:
parent
112a45bdf2
commit
bd7348949a
Notes:
github-actions[bot]
2025-09-10 15:14:47 +00:00
Author: https://github.com/tcl3
Commit: bd7348949a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6137
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/Calme1709
Reviewed-by: https://github.com/gmta ✅
9 changed files with 564 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue