blob: 043618148dd6f87b9a5b33a0ddc20605c2349f8d [file] [log] [blame]
<!DOCTYPE html>
<html>
<style>
.fade {
animation: fader linear 0.5s
}
@keyframes fader {
0% { opacity: 1.0 }
50% { opacity: 0.0 }
}
</style>
<!-- The blue sector of the image should be at 12 o'clock. -->
<img onload="fade(this)" width="400px" src="resources/red-at-12-oclock-with-color-profile.jpg">
<script>
function fade(element) {
element.addEventListener('animationend', end, false);
element.classList.toggle('fade');
}
function end(event) {
if (window.testRunner)
setTimeout(function() { testRunner.notifyDone() }, 0);
}
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
</script>
</html>