LibWeb/SVG: Respect paint-order when painting SVG paths

This commit is contained in:
Tim Ledbetter 2025-08-24 15:05:57 +01:00 committed by Sam Atkins
commit 277b81ca97
Notes: github-actions[bot] 2025-08-28 09:32:27 +00:00
5 changed files with 155 additions and 81 deletions

View file

@ -202,6 +202,13 @@ Optional<float> SVGGraphicsElement::fill_opacity() const
return layout_node()->computed_values().fill_opacity();
}
CSS::PaintOrderList SVGGraphicsElement::paint_order() const
{
if (!layout_node())
return CSS::InitialValues::paint_order();
return layout_node()->computed_values().paint_order();
}
Optional<CSS::StrokeLinecap> SVGGraphicsElement::stroke_linecap() const
{
if (!layout_node())