| <html style="background-image: url('resources/animated.gif'); background-repeat: repeat; height: 0"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <body onload="runTest()"> |
| function checkBackgroundAnimated() { |
| isBackgroundAnimated = !internals.hasPausedImageAnimations(document.documentElement); |
| htmlHeight = window.getComputedStyle(document.documentElement)["height"]; |
| description("Make sure the background image of the html element is animated if the html element has 0 height"); |
| shouldBeEqualToString("htmlHeight", "0px"); |
| shouldBeTrue("isBackgroundAnimated"); |
| setTimeout(checkBackgroundAnimated, 200); |
| // Make sure the image is loaded before we check if it is animated. |
| img.onload = imageLoaded; |
| img.src = "resources/animated.gif"; |
| <script src="../../resources/js-test-post.js"></script> |