mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue