Files
ladybird/Tests/LibWeb/Ref/expected/svg-line-dynamic-attribute-update-ref.html
Aliaksandr Kalenik c4bdbfbec5 LibWeb: Invalidate layout when SVGLineElement attributes change
SVGLineElement::get_path() produces a path based on x1, y1, x2, and
y2 attributes. During layout, this path is copied into paintables.
If any of these attributes change after layout, the path stored in the
paintable becomes stale. Fix by calling set_needs_layout_update() when
a geometry attribute changes so the path is recomputed.
2026-02-05 15:43:41 +01:00

5 lines
132 B
HTML

<!DOCTYPE html>
<svg width="200" height="200">
<line x1="10" y1="10" x2="190" y2="190" stroke="black" stroke-width="2"/>
</svg>