LibWeb: Add letter-spacing css property to Node

This commit is contained in:
Kostya Farber 2024-10-22 14:21:20 +01:00 committed by Sam Atkins
commit 537cbf55c3
Notes: github-actions[bot] 2024-10-22 14:33:32 +00:00
4 changed files with 26 additions and 1 deletions

View file

@ -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());