mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 21:20:18 +00:00
LibWeb/CSS: Take AbstractElement in resolve_unresolved_properties()
This commit is contained in:
parent
83aee2c7fc
commit
916e24de30
Notes:
github-actions[bot]
2025-09-11 16:49:07 +00:00
Author: https://github.com/AtkinsSJ
Commit: 916e24de30
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
3 changed files with 5 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue