Skip to content

Commit c8f3453

Browse files
Calme1709AtkinsSJ
authored andcommitted
LibWeb: Maintain property importance into ComputedProperties
Previously we wouldn't propagate this from CascadedProperties to ComputedProperties
1 parent 823dd11 commit c8f3453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/LibWeb/CSS/StyleComputer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,7 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
25472547
if (!value || value->is_initial() || value->is_unset())
25482548
value = property_initial_value(property_id);
25492549

2550-
computed_style->set_property(property_id, value.release_nonnull(), inherited);
2550+
computed_style->set_property(property_id, value.release_nonnull(), inherited, cascaded_properties.is_property_important(property_id) ? Important::Yes : Important::No);
25512551
if (animated_value.has_value())
25522552
computed_style->set_animated_property(property_id, animated_value.value(), inherited);
25532553

0 commit comments

Comments
 (0)