2009-08-02 19:12:57 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
|
|
|
<head>
|
|
|
|
<body style="white-space:pre"
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
><img src="data:image/gif;base64,R0lGODlhEAAQAPAAALuWAAAAACH5BAUIAAEALAMAAwAKAAoAAAIMDI5nye0Po5xutVAAADs="
|
|
|
|
>
|
|
|
|
<script>
|
2009-11-15 14:52:31 -08:00
|
|
|
document.body.offsetTop;
|
2009-08-02 19:12:57 -07:00
|
|
|
var t = document.body;
|
|
|
|
// Test anchor < newfocus = focus
|
|
|
|
var sel = window.getSelection();
|
|
|
|
function loaded() {
|
|
|
|
sel.collapse(t, 2); // anchor
|
|
|
|
sel.extend(t, 8); // focus
|
|
|
|
}
|
|
|
|
function doTest() {
|
|
|
|
sel.extend(t, 8); // newfocus
|
|
|
|
document.documentElement.removeAttribute('class');
|
|
|
|
}
|
|
|
|
window.addEventListener("load", loaded, false);
|
|
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|