<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="utf-8"/>
<title>href enter</title>
<script>
  function runTest() {
    if (window.eventSender) {
      eventSender.keyDown('\t'); // focus the link
      eventSender.keyDown('\r'); // press enter
      document.documentElement.removeAttribute("class");
    }
  }
</script>
</head>
<body onload="runTest()">

  <p>This test passes if you see a green square.</p>

  <div style="width: 150px; height: 150px; overflow: hidden">
    <math>
      <mrow id="link" href="#target">
        <mspace id="space" width="150px" height="150px" mathbackground="red"/>
      </mrow>
    </math>
    <div style="height: 500px;"></div>
    <math id="target">
      <mspace width="150px" height="150px" mathbackground="green"/>
    </math>
  </div>

</body>
</html>
