1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 14:37:45 +00:00

LibWeb: Store computed CSS value of background-repeat

This commit is contained in:
Timothy Flynn 2021-04-02 15:41:29 -04:00 committed by Andreas Kling
parent fcfeadaffa
commit bd5a91269f
7 changed files with 55 additions and 0 deletions

View file

@ -234,6 +234,10 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
m_background_image = static_ptr_cast<CSS::ImageStyleValue>(bgimage.value());
}
auto background_repeat = specified_style.background_repeat();
if (background_repeat.has_value())
computed_values.set_background_repeat(background_repeat.value());
computed_values.set_display(specified_style.display());
auto flex_direction = specified_style.flex_direction();