mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
421cab991c
--HG-- extra : rebase_source : 5d4fd55728e1167cc57451b5c80a46643191678b
20 lines
461 B
HTML
20 lines
461 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<body style="white-space:pre">0123456789
|
|
<script>
|
|
// Test newfocus < focus < anchor
|
|
var t = document.body.firstChild;
|
|
var sel = window.getSelection();
|
|
sel.collapse(t, 8); // anchor
|
|
sel.extend(t, 4); // focus
|
|
|
|
function doTest() {
|
|
sel.extend(t, 2); // newfocus
|
|
document.documentElement.removeAttribute('class');
|
|
}
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
</script>
|
|
</body>
|
|
</html>
|