mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
SVGPolygonElement::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.
5 lines
119 B
HTML
5 lines
119 B
HTML
<!DOCTYPE html>
|
|
<svg width="200" height="200">
|
|
<polygon points="10,10 190,10 190,190 10,190" fill="black"/>
|
|
</svg>
|