<!DOCTYPE html>
<html>
<head>
<style id='style'>
  #div {
    -webkit-mask-image: url('resources/remove-animation-element-while-animation-is-running.svg');
  }
</style>
<script>
  if (window.testRunner)
    testRunner.waitUntilDone();

  function setupCrash() {
    setTimeout("crash()", 1);
  }

  function crash() {
    var styleEl = document.getElementById('style');
    styleEl.parentNode.removeChild(styleEl);
    var divEl = document.getElementById('div');
    document.adoptNode(divEl);
    if (window.testRunner)
      testRunner.notifyDone();
  }
</script>
</head>
<body onload="setupCrash()">
  Test for WK110257: This test passes if it does not crash.
  <div id='div'></div>
</body>
</html>

