mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
78f3465f56
--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>
|