blob: a83fe4d1ad7c20f22413595ca366c3be08f1d92f [file] [log] [blame]
<html>
<head>
<style type="text/css" media="screen">
div {
border-radius: 1px;
background-size: 200px 200px;
background-image: url('resources/red-green-animated.gif');
height: 200px;
width: 200px;
}
</style>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script type="text/javascript" charset="utf-8">
if (window.testRunner)
testRunner.waitUntilDone();
function pageLoaded()
{
runAfterLayoutAndPaint(function () {
window.setTimeout(function() {
if (window.testRunner)
testRunner.notifyDone();
}, 200); // Red frame of GIF has 100ms duration
});
}
window.addEventListener('load', pageLoaded, false);
</script>
</script>
</head>
<body>
<p>Div background should animate between red and green. DRT should snapshot when it is green.</p>
<div></div>
</body>
</html>