<!DOCTYPE html>
<style>
#star {
cursor: pointer;
font-size: 100px;
color: black;
margin : 40px;
}
#star:hover {
color:red;
}
</style>
<img id='star' src='' alt='★'/>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
var star = document.getElementById('star');
eventSender.mouseMoveTo(star.offsetLeft + 2, star.offsetTop + 2);
window.requestAnimationFrame(function() {
testRunner.notifyDone();
});
}
</script>