mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/CSS: Parse the tab-size property
This commit is contained in:
parent
140dc95e67
commit
68a28ff33a
Notes:
github-actions[bot]
2024-10-02 09:28:15 +00:00
Author: https://github.com/kostyafarber
Commit: 68a28ff33a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1560
Reviewed-by: https://github.com/AtkinsSJ ✅
6 changed files with 38 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue