| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <div id="fixed" style="position: fixed; width: 0; height: 0; top: 200px; left: 1
00px"> |
| 3 <div id="child" style="position: relative"> |
| 4 <!-- This is to isolate layout --> |
| 5 <div style="width: 200px; height: 200px; overflow: hidden"> |
| 6 <div id="editable" contenteditable="true" style="outline: none; margin: 10
px; width: 100px">ABCDE</div> |
| 7 </div> |
| 8 </div> |
| 9 </div> |
| 10 <script src="../../resources/run-after-layout-and-paint.js"></script> |
| 11 <script src="resources/text-based-repaint.js"></script> |
| 12 <script> |
| 13 function repaintTest() { |
| 14 fixed.style.top = '100px'; |
| 15 child.style.top = '100px'; |
| 16 getSelection().collapse(editable.firstChild, 4); |
| 17 } |
| 18 |
| 19 onload = function() { |
| 20 editable.focus(); |
| 21 runAfterLayoutAndPaint(repaintTest, true); |
| 22 }; |
| 23 </script> |
| OLD | NEW |