summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1634543-3.html
blob: 547c1c355972fa2250e7a072f73700ecea9c17e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html class="reftest-wait">
<title>Caret is correctly position for block whose only child is an empty span</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
  div:focus {
    outline: 3px solid blue;
  }
</style>
<div contenteditable="true" spellcheck="false"><span></span></div>
<script>
SimpleTest.waitForFocus(function() {
  document.querySelector('[contenteditable="true"]').focus();
  requestAnimationFrame(function() {
    requestAnimationFrame(function() {
      document.documentElement.removeAttribute("class");
    });
  });
});
</script>