mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 13:39:25 +00:00
LibWeb: Return letter-spacing
computed value as CSSPixels
This commit is contained in:
parent
c677b64773
commit
099247d502
Notes:
github-actions[bot]
2025-09-10 15:15:10 +00:00
Author: https://github.com/tcl3
Commit: 099247d502
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 ✅
5 changed files with 18 additions and 18 deletions
|
@ -620,9 +620,7 @@ void NodeWithStyle::apply_style(CSS::ComputedProperties const& computed_style)
|
|||
if (auto word_spacing = computed_style.word_spacing(); word_spacing.has_value())
|
||||
computed_values.set_word_spacing(word_spacing.value());
|
||||
|
||||
auto letter_spacing = computed_style.letter_spacing();
|
||||
if (letter_spacing.has_value())
|
||||
computed_values.set_letter_spacing(letter_spacing.value());
|
||||
computed_values.set_letter_spacing(computed_style.letter_spacing());
|
||||
|
||||
computed_values.set_float(computed_style.float_());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue