Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / 4776765.html
1 <script src="resources/repaint.js" type="text/javascript"></script>
2 <script type="text/javascript">
3 function repaintTest() {
4     document.execCommand("InsertParagraph");
5 }
6 </script>
7 <body onload="runRepaintTest();">
8 <p>This tests for a repaint bug.  The old caret position should be invalidated when a paragraph separator is inserted.</p>
9 <div contenteditable="true">
10 <div><br></div>
11 <div id="div"><br></div>
12 </div>
13 <script>
14 var div = document.getElementById("div");
15 var sel = window.getSelection();
16
17 sel.setPosition(div, 0);
18 </script>
19 </body>