mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Maintain property importance into ComputedProperties
Previously we wouldn't propagate this from CascadedProperties to ComputedProperties
This commit is contained in:
parent
823dd11b67
commit
c8f345356e
Notes:
github-actions[bot]
2025-10-27 09:53:06 +00:00
Author: https://github.com/Calme1709
Commit: c8f345356e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6590
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue