mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
25 lines
601 B
HTML
25 lines
601 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Contenteditable Selection Test Case</title>
|
|
<script>
|
|
function runTests() {
|
|
var text = document.getElementById("text");
|
|
|
|
text.focus();
|
|
|
|
setTimeout(function () {
|
|
document.body.offsetHeight;
|
|
document.documentElement.removeAttribute('class');
|
|
}, 0);
|
|
}
|
|
document.addEventListener('MozReftestInvalidate', runTests, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div>This is a contenteditable.</div>
|
|
<div id="text" tabindex="0">This is focusable text</div>
|
|
</body>
|
|
</html>
|