Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/java script"></script> | |
| 5 <style> | |
| 6 .textArea { | |
| 7 position: absolute; left: 0px; top: 200px; | |
| 8 -webkit-writing-mode: vertical-rl; | |
| 9 width: 200px; | |
| 10 height: 300px; | |
| 11 border: 1px solid black; | |
| 12 outline-style: none; | |
| 13 } | |
| 14 </style> | |
| 15 <script> | |
| 16 if (window.testRunner) | |
| 17 testRunner.dumpAsTextWithPixelResults(); | |
| 18 | |
| 19 function repaintTest() { | |
| 20 var testElement = document.getElementById('test'); | |
| 
 
yosin_UTC9
2014/07/04 01:13:09
nit: Please use double-quote because other parts o
 
 | |
| 21 testElement.focus(); | |
| 22 | |
| 23 var selection = window.getSelection(); | |
| 24 selection.collapse(testElement, 1); | |
| 25 selection.modify("move", "backward", "character"); | |
| 26 document.execCommand("InsertParagraph"); | |
| 27 } | |
| 28 </script> | |
| 29 </head> | |
| 30 <body onload="runRepaintTest()"> | |
| 31 <div class="textArea" contenteditable="true"> | |
| 32 <p> | |
| 33 <span id="test">Some text in vertical mode</span> | |
| 34 </p> | |
| 35 </div> | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |