https://github.com/mozilla/gecko-dev
Raw File
Tip revision: 30ce7b7e73de80444b4074c2384b406f5228b6e4 authored by Andrew Sutherland on 03 April 2020, 06:35:19 UTC
Bug 1626728 - Normalize shutdown. r=perry,jstutte, a=RyanVM
Tip revision: 30ce7b7
extend-1c.html
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<body style="white-space:pre">0123456789
<script>
document.body.offsetTop;
// Test anchor < newfocus < focus
var t = document.body.firstChild;
var sel = window.getSelection();
sel.collapse(t, 2); // anchor
sel.extend(t, 9);   // focus

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