LibWeb/CSS: Take AbstractElement in resolve_unresolved_properties()

This commit is contained in:
Sam Atkins 2025-09-05 14:07:53 +01:00 committed by Alexander Kalenik
commit 916e24de30
Notes: github-actions[bot] 2025-09-11 16:49:07 +00:00
3 changed files with 5 additions and 7 deletions

View file

@ -1567,9 +1567,8 @@ GC::Ref<CascadedProperties> StyleComputer::compute_cascaded_values(DOM::Element&
}
// SVG presentation attributes are parsed as CSS values, so we need to handle potential custom properties here.
if (element.is_svg_element()) {
cascaded_properties->resolve_unresolved_properties(element, pseudo_element);
}
if (element.is_svg_element())
cascaded_properties->resolve_unresolved_properties({ element, pseudo_element });
}
// Normal author declarations, ordered by @layer, with un-@layer-ed rules last