blob: 5cdbd877a5242cda4c2d8dc5f713bf83b6a52f80 [file] [log] [blame]
<html>
<head>
<title></title>
<style type="text/css">
span#t:hover { color: red; }
</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()">
<div>
<span id="t">This should turn red when hovered.</span>
</div>
<hr>
<p>
Test for
<i><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=7327">http://bugzilla.opendarwin.org/show_bug.cgi?id=7327</a>
REGRESSION (r12869): :hover subselector does not work in quirks mode</i>.
This tests that <code>span#t:hover</code> matches the hovered span.
</p>
</body>
</html>