<!doctype html>
<title>Non-SVGElements are allowed as event-bases</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<svg>
  <rect height="100" width="100" fill="red">
    <set attributeName="fill" begin="e.test" to="green"/>
  </rect>
</svg>
<div id="e"></div>
<script>
async_test(t => {
  document.querySelector("set").onbegin = t.step_func_done();
  document.getElementById("e").dispatchEvent(new Event("test"));
});
</script>
