LibWeb: Apply the word-spacing css property to Node

This will let us start to begin applying this during
text shaping.
This commit is contained in:
Kostya Farber 2024-10-18 21:00:28 +01:00 committed by Sam Atkins
commit da42c19cb6
Notes: github-actions[bot] 2024-10-22 12:37:23 +00:00
4 changed files with 25 additions and 0 deletions

View file

@ -598,6 +598,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
if (white_space.has_value())
computed_values.set_white_space(white_space.value());
auto word_spacing = computed_style.word_spacing();
if (word_spacing.has_value())
computed_values.set_word_spacing(word_spacing.value());
auto float_ = computed_style.float_();
if (float_.has_value())
computed_values.set_float(float_.value());