26 lines
733 B
HTML
26 lines
733 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<style type='text/css'>
|
|
:hover { background-color: #666; }
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
function test()
|
|
{
|
|
if (!window.eventSender)
|
|
return;
|
|
|
|
document.body.offsetTop; // Force layout. The mouse is not tracked before first layout.
|
|
eventSender.mouseMoveTo(16, 16); // Hover.
|
|
document.body.offsetTop; // Update layout for hovered state.
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="test()">
|
|
<h3>Test of unqualifed :hover selector in strict parsing mode</h3>
|
|
|
|
<p>Moving the mouse anywhere over the document should result in the background color being changed to grey.</p>
|
|
</body>
|
|
</html>
|