summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1634543-2.html
blob: fb05a4e4bb6fd5f7965bc8fdbd9079403dfc1aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<html class="reftest-wait">
<title>Caret is correctly position for block whose only child is an abspos span</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
  div:focus {
    outline: 3px solid blue;
  }
  span {
    /* This is the point of the test */
    position: absolute;
  }
</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>