blob: a33d73492ef2936f2b7c0c7d254a80c817c67b69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<!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>
|