gecko/layout/style/crashtests/1200568-1.html
Brian Birtles 114161e07b Bug 1200568 - Don't create animations for elements that are not part of the document tree; r=dbaron
As well as ensuring that we don't create animations for elements that are not
part of the document tree, this test also adjusts the assertion that checks
this in the following ways:

* Calls GetComposedDoc() instead of GetCrossShadowCurrentDoc() since the
  latter is deprecated.
* Moves it from RequestRestyle to FlushAnimations since, depending on how we
  refactor this code in the future, it's possible we might end up calling
  RequestRestyle even for animations on elements that have been removed from the
  document but we shouldn't call FlushAnimations in this case.
2015-09-09 10:10:41 +09:00

17 lines
261 B
HTML

<!doctype html>
<html>
<head>
<style>
.anim { animation: anim 2s infinite linear }
@keyframes anim { }
</style>
</head>
<body>
<script>
var i = document.createElement('i');
i.setAttribute('class', 'anim');
getComputedStyle(i).display;
</script>
</body>
</html>