mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
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:
parent
e4533e5595
commit
da42c19cb6
Notes:
github-actions[bot]
2024-10-22 12:37:23 +00:00
Author: https://github.com/kostyafarber
Commit: da42c19cb6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1860
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 25 additions and 0 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_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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue