mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
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.
This commit is contained in:
parent
1b8d8c7bbc
commit
2e0297d703
8 changed files with 155 additions and 36 deletions
|
@ -0,0 +1,13 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue