summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/animations/eventbase-non-svg-element.html
blob: f4e7f793e41dd3de8b3e1c19da9387edffa62baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!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>