summaryrefslogtreecommitdiffstats
path: root/layout/base/tests/bug1634543-1.html
blob: 039d93df6496083181a4b8f0913a769b86509659 (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
25
<!doctype html>
<html class="reftest-wait">
<title>Caret is correctly position for block whose only child is an abspos pseudo</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<style>
  div:focus {
    outline: 3px solid blue;
  }
  div::before {
    content: "";
    /* This is the point of the test */
    position: absolute;
  }
</style>
<div contenteditable="true" spellcheck="false"></div>
<script>
SimpleTest.waitForFocus(function() {
  document.querySelector('[contenteditable="true"]').focus();
  requestAnimationFrame(function() {
    requestAnimationFrame(function() {
      document.documentElement.removeAttribute("class");
    });
  });
});
</script>