Files
ladybird/Tests/LibWeb/Ref/expected/svg-polyline-dynamic-attribute-update-ref.html
Aliaksandr Kalenik 076726a990 LibWeb: Invalidate layout when SVGPolylineElement attributes change
SVGPolylineElement::get_path() produces a path based on the points
attribute. During layout, this path is copied into paintables. If the
points attribute changes after layout, the path stored in the paintable
becomes stale. Fix by calling set_needs_layout_update() when it changes
so the path is recomputed.
2026-02-05 15:43:41 +01:00

5 lines
144 B
HTML

<!DOCTYPE html>
<svg width="200" height="200">
<polyline points="10,10 100,190 190,10" stroke="black" stroke-width="2" fill="none"/>
</svg>