LibWeb: Maintain property importance into ComputedProperties

Previously we wouldn't propagate this from CascadedProperties to
ComputedProperties
This commit is contained in:
Callum Law 2025-10-27 02:02:50 +13:00 committed by Sam Atkins
parent 823dd11b67
commit c8f345356e
Notes: github-actions[bot] 2025-10-27 09:53:06 +00:00

View file

@ -2547,7 +2547,7 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
if (!value || value->is_initial() || value->is_unset())
value = property_initial_value(property_id);
computed_style->set_property(property_id, value.release_nonnull(), inherited);
computed_style->set_property(property_id, value.release_nonnull(), inherited, cascaded_properties.is_property_important(property_id) ? Important::Yes : Important::No);
if (animated_value.has_value())
computed_style->set_animated_property(property_id, animated_value.value(), inherited);