OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
ojan
2014/07/08 23:53:30
Please remove the html and head element as this te
arpitab_
2014/07/09 13:57:26
Done.
| |
4 <script src="../../fast/repaint/resources/text-based-repaint.js" type="text/java script"></script> | |
ojan
2014/07/08 23:53:30
No need for the type attribute.
arpitab_
2014/07/09 13:57:26
Done.
| |
5 <style> | |
6 .textArea { | |
7 position: absolute; left: 0px; top: 200px; | |
ojan
2014/07/08 23:53:30
Please put each of these on their own line.
arpitab_
2014/07/09 13:57:26
Done.
| |
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"); | |
21 testElement.focus(); | |
22 | |
23 var selection = window.getSelection(); | |
24 selection.collapse(testElement, 1); | |
25 selection.modify("move", "backward", "character"); | |
26 document.execCommand("InsertParagraph"); | |
ojan
2014/07/08 23:53:30
execCommands and selections are complicated and ma
| |
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 |