| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 3 <style> | 3 <style> |
| 4 #test { | 4 #test { |
| 5 position: absolute; | 5 position: absolute; |
| 6 left: 0px; | 6 left: 0px; |
| 7 top: 200px; | 7 top: 200px; |
| 8 -webkit-writing-mode: vertical-rl; | 8 -webkit-writing-mode: vertical-rl; |
| 9 width: 200px; | 9 width: 200px; |
| 10 height: 300px; | 10 height: 300px; |
| 11 border: 1px solid black; | 11 border: 1px solid black; |
| 12 outline-style: none; | 12 outline-style: none; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 <script> | 15 <script> |
| 16 if (window.testRunner) | |
| 17 testRunner.dumpAsTextWithPixelResults(); | |
| 18 | |
| 19 function repaintTest() { | 16 function repaintTest() { |
| 20 var testElement = document.getElementById("test"); | 17 var testElement = document.getElementById("test"); |
| 21 var selection = window.getSelection(); | 18 var selection = window.getSelection(); |
| 22 selection.collapse(testElement, 1); | 19 selection.collapse(testElement, 1); |
| 23 selection.modify("Extend", "Forward", "Line"); | 20 selection.modify("Extend", "Forward", "Line"); |
| 24 } | 21 } |
| 25 </script> | 22 </script> |
| 26 <body onload="runRepaintTest()"> | 23 <body onload="runRepaintAndPixelTest()"> |
| 27 <div id="test" contenteditable="true"> | 24 <div id="test" contenteditable="true"> |
| 28 <div>Some text in vertical mode</div> | 25 <div>Some text in vertical mode</div> |
| 29 </div> | 26 </div> |
| 30 </body> | 27 </body> |
| OLD | NEW |