mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
23 lines
467 B
HTML
23 lines
467 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<style>
|
|
div {
|
|
min-height: 36px;
|
|
overflow: auto;
|
|
}
|
|
</style>
|
|
<script>
|
|
function test() {
|
|
document.querySelector("div").focus();
|
|
}
|
|
function focusTriggered() {
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="test()">
|
|
<div contenteditable onfocus="focusTriggered()"></div>
|
|
</body>
|
|
</html>
|