1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:37:35 +00:00

LibWeb: Add "object-fit" CSS property into ComputedValues

This commit is contained in:
Aliaksandr Kalenik 2024-02-26 10:46:22 +01:00 committed by Andreas Kling
parent 22da83c295
commit 677a00ed92
3 changed files with 7 additions and 7 deletions

View file

@ -830,6 +830,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
computed_values.set_math_depth(computed_style.math_depth());
computed_values.set_quotes(computed_style.quotes());
if (auto object_fit = computed_style.object_fit(); object_fit.has_value())
computed_values.set_object_fit(object_fit.value());
propagate_style_to_anonymous_wrappers();
}