LibWeb: Parse the word-break css property

This commit is contained in:
Kostya Farber 2024-10-25 16:47:05 +01:00 committed by Jelle Raaijmakers
commit 44b1c4f2b5
Notes: github-actions[bot] 2024-10-25 22:18:52 +00:00
8 changed files with 35 additions and 1 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_break = computed_style.word_break();
if (word_break.has_value())
computed_values.set_word_break(word_break.value());
auto word_spacing = computed_style.word_spacing();
if (word_spacing.has_value())
computed_values.set_word_spacing(word_spacing.value());