ladybird/Tests/LibWeb/Text/input/SVG/gradient-with-reference-cycle.html
Andreas Kling 2e0297d703 LibWeb: Handle reference cycles in SVG gradient linking
Since SVG gradients can reference each other, we have to keep track of
visited gradients when traversing the link chain, or we will recurse
infinitely when there's a reference cycle.
2024-03-11 18:29:10 +01:00

13 lines
322 B
HTML

<!doctype html>
<script src="../include.js"></script>
<svg>
<linearGradient id="lol" href="#lmao"/>
<linearGradient id="lmao" href="#even"/>
<linearGradient id="even" href="#lol"/>
<rect fill="url(#lol)" />
</svg>
<script>
test(() => {
println("PASS (didn't hang or crash)");
});
</script>