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

@ -702,6 +702,12 @@ Variant<LengthOrCalculated, NumberOrCalculated> StyleProperties::tab_size() cons
return NumberOrCalculated { value->as_number().number() };
}
Optional<CSS::WordBreak> StyleProperties::word_break() const
{
auto value = property(CSS::PropertyID::WordBreak);
return keyword_to_word_break(value->to_keyword());
}
Optional<CSS::LengthOrCalculated> StyleProperties::word_spacing() const
{
auto value = property(CSS::PropertyID::WordSpacing);