mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 21:35:39 +00:00
8530476b49
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.
17 lines
261 B
HTML
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>
|