<!DOCTYPE html>
<title>Should not crash on circular filter reference containing a foreignObject.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>test(()=>{})</script>
<svg id="svg" filter="url(#filter)">
  <foreignObject overflow="hidden"></foreignobject>
</svg>
<svg>
  <filter id="filter">
    <feImage xlink:href="#svg"></feimage>
  </filter>
</svg>
