mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Parse the word-break css property
This commit is contained in:
parent
124bd115a1
commit
44b1c4f2b5
Notes:
github-actions[bot]
2024-10-25 22:18:52 +00:00
Author: https://github.com/kostyafarber
Commit: 44b1c4f2b5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1965
8 changed files with 35 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue