LibWeb: Add writing-mode CSS property, and its values

Introduce the `writing-mode` property, as specified in
https://drafts.csswg.org/css-writing-modes/#block-flow
This commit is contained in:
BenJilks 2024-10-27 22:12:54 +00:00 committed by Alexander Kalenik
commit c3f3e93b7e
Notes: github-actions[bot] 2024-11-03 16:03:18 +00:00
8 changed files with 40 additions and 1 deletions

View file

@ -925,6 +925,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
if (auto scrollbar_width = computed_style.scrollbar_width(); scrollbar_width.has_value())
computed_values.set_scrollbar_width(scrollbar_width.value());
if (auto writing_mode = computed_style.writing_mode(); writing_mode.has_value())
computed_values.set_writing_mode(writing_mode.value());
propagate_style_to_anonymous_wrappers();
}