bug1634543-2.html (665B)
1 <!doctype html> 2 <html class="reftest-wait"> 3 <title>Caret is correctly position for block whose only child is an abspos span</title> 4 <script src="/tests/SimpleTest/SimpleTest.js"></script> 5 <style> 6 div:focus { 7 outline: 3px solid blue; 8 } 9 span { 10 /* This is the point of the test */ 11 position: absolute; 12 } 13 </style> 14 <div contenteditable="true" spellcheck="false"><span></span></div> 15 <script> 16 SimpleTest.waitForFocus(function() { 17 document.querySelector('[contenteditable="true"]').focus(); 18 requestAnimationFrame(function() { 19 requestAnimationFrame(function() { 20 document.documentElement.removeAttribute("class"); 21 }); 22 }); 23 }); 24 </script>