layout/style/crashtests/1418867.html
author Hiroyuki Ikezoe <hikezoe@mozilla.com>
Wed, 22 Nov 2017 12:20:15 +0900
changeset 701867 00a08154f505461f6424fd6f5254bffd997b3db4
permissions -rw-r--r--
Bug 1418867 - Crash test for the case where the parent element has no style data for pseudo. r=emilio MozReview-Commit-ID: 977gqyZTob2

<!DOCTYPE html>
<html class="reftest-wait">
<style>
@keyframes anim {
  to { transform: rotate(360deg); }
}
.document-ready div::after {
  display: none;
}
div::after {
  content: "";
}
.animation::after {
  animation: anim 1s infinite;
}
</style>
<div id="target"></div>
<script>
window.addEventListener('load', () => {
  target.classList.add('animation');
  const psuedo = document.getAnimations()[0].effect.target;
  target.classList.remove('animation');

  psuedo.animate([ { transform: 'rotate(360deg)' } ], 1000);
  requestAnimationFrame(() => {
    document.documentElement.classList.add('document-ready');
    requestAnimationFrame(() => {
      document.documentElement.classList.remove('reftest-wait');
    });
  });
});
</script>
</html>