<!DOCTYPE html>
<title>'mask' within <feImage> should not crash</title>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<svg filter="url(#filter)">
<mask id="mask">
<rect width="100" height="100" fill="white"/>
</mask>
<filter id="filter">
<feImage xlink:href="#e"/>
</filter>
<rect id="e" width="200" height="100" fill="green" mask="url(#mask)"/>
</svg>
<script>
test(_ => {});
</script>