<style>
  #filtered {
    width: 160px;
    height: 90px;
    -webkit-filter: url(#imagereplace);
    filter: url(#imagereplace);
  }
</style>

<div id="filtered"></div>

<p>
    WebKit bug #<a href="https://bugs.webkit.org/show_bug.cgi?id=131660">131660</a>: Assertion failure in FEImage::determineAbsolutePaintRect(). This test passes if it does not assert in a debug build.
</p>

<svg xmlns="http://www.w3.org/3000/svg" width="0" height="0" xmlns:xlink="http://www.w3.org/1999/xlink">
  <filter id="imagereplace">
     <feimage xlink:href="test.png"/>
  </filter>
</svg>

<script>
    if (window.testRunner)
        window.testRunner.dumpAsText();
</script>
