LibWeb/CSS: Parse the tab-size property

This commit is contained in:
Kostya Farber 2024-10-01 13:07:06 +01:00 committed by Sam Atkins
commit 68a28ff33a
Notes: github-actions[bot] 2024-10-02 09:28:15 +00:00
6 changed files with 38 additions and 1 deletions

View file

@ -598,6 +598,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
if (auto text_overflow = computed_style.text_overflow(); text_overflow.has_value())
computed_values.set_text_overflow(text_overflow.release_value());
auto tab_size = computed_style.tab_size();
computed_values.set_tab_size(tab_size);
auto white_space = computed_style.white_space();
if (white_space.has_value())
computed_values.set_white_space(white_space.value());