mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
LibWeb: Add letter-spacing css property to Node
This commit is contained in:
parent
6c3ecf6a34
commit
537cbf55c3
Notes:
github-actions[bot]
2024-10-22 14:33:32 +00:00
Author: https://github.com/kostyafarber
Commit: 537cbf55c3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1911
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 26 additions and 1 deletions
|
@ -602,6 +602,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
|
|||
if (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());
|
||||
|
||||
auto float_ = computed_style.float_();
|
||||
if (float_.has_value())
|
||||
computed_values.set_float(float_.value());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue