layout/reftests/selection/extend-1h.html
author Chris H-C <chutten@mozilla.com>
Fri, 22 Mar 2019 17:31:02 +0000
changeset 465740 c3d4eb5b3b2223aa6734bb8c2d39457ee768fc3c
parent 329664 7b434711753b98a87603453caaa0945791ffe12b
permissions -rw-r--r--
Bug 1536805 - Document Origin Telemetry r=janerik Differential Revision: https://phabricator.services.mozilla.com/D24263

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<body style="white-space:pre">0123456789
<script>
document.body.offsetTop;
// Test focus < newfocus < anchor
var t = document.body.firstChild;
var sel = window.getSelection();
sel.collapse(t, 8); // anchor
sel.extend(t, 1);   // focus

function doTest() {
  sel.extend(t, 2); // newfocus
  document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", doTest);
</script>
</body>
</html>