1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibWeb: Add support for the text-justify property

This commit adds the text-justify property as defined in:
https://drafts.csswg.org/css-text/#propdef-text-justify
This commit is contained in:
sin-ack 2022-03-12 19:31:32 +00:00 committed by Andreas Kling
parent 7fe3f2d970
commit 0679eadd62
7 changed files with 50 additions and 0 deletions

View file

@ -365,6 +365,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
if (text_align.has_value())
computed_values.set_text_align(text_align.value());
auto text_justify = specified_style.text_justify();
if (text_align.has_value())
computed_values.set_text_justify(text_justify.value());
auto white_space = specified_style.white_space();
if (white_space.has_value())
computed_values.set_white_space(white_space.value());