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

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

This commit is contained in:
Aliaksandr Kalenik 2024-02-26 11:33:54 +01:00 committed by Andreas Kling
parent 677a00ed92
commit a0dc9584de
5 changed files with 46 additions and 29 deletions

View file

@ -833,6 +833,8 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& computed_style)
if (auto object_fit = computed_style.object_fit(); object_fit.has_value())
computed_values.set_object_fit(object_fit.value());
computed_values.set_object_position(computed_style.object_position());
propagate_style_to_anonymous_wrappers();
}