LibWeb: Parse and propagate white-space-collapse CSS property

This commit is contained in:
Callum Law 2025-05-16 18:32:31 +12:00 committed by Jelle Raaijmakers
commit ea30356fba
Notes: github-actions[bot] 2025-05-29 10:06:12 +00:00
17 changed files with 321 additions and 180 deletions

View file

@ -830,6 +830,12 @@ WhiteSpace ComputedProperties::white_space() const
return keyword_to_white_space(value.to_keyword()).release_value();
}
WhiteSpaceCollapse ComputedProperties::white_space_collapse() const
{
auto const& value = property(PropertyID::WhiteSpaceCollapse);
return keyword_to_white_space_collapse(value.to_keyword()).release_value();
}
Optional<LengthOrCalculated> ComputedProperties::letter_spacing() const
{
auto const& value = property(PropertyID::LetterSpacing);